Parcourir la source

build.py: fixed comment block regex

Mr.doob il y a 10 ans
Parent
commit
6f73125bdc
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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')