Explorar o código

build.py: fixed comment block regex

Mr.doob %!s(int64=9) %!d(string=hai) anos
pai
achega
6f73125bdc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      utils/build/build.py

+ 1 - 1
utils/build/build.py

@@ -63,7 +63,7 @@ def main(argv=None):
 					tmp.write(u'THREE.ShaderChunk[ \'' + os.path.splitext(os.path.basename(filename))[0] + u'\'] = "')
 					text = f.read()
 					text = re.sub(r"[ \t]*//.*\n", "", text) # remove //
-					text = re.sub(r"[ \t]*\/\*[\s\S]*\*\/\n?", "", text) # remove /* */
+					text = re.sub(r"[ \t]*/\*[\s\S]*?\*/", "", text) # remove /* */
 					text = re.sub(r"\n+", '\\\\n', text) # \n+ to \n
 					tmp.write(text)
 					tmp.write(u'";\n\n')