minifier fix to allow @as type hints

This commit is contained in:
Mikayla Fischler 2024-10-19 13:58:56 -04:00
parent e847505ac2
commit 91cb51bad9

View File

@ -28,7 +28,7 @@ def minify(path: str):
contents = f.read()
f.close()
if re.search(r'--+\[+', contents) != None:
if re.search(r'--+\[(?!\[@as)+', contents) != None:
# absolutely not dealing with lua multiline comments
# - there are more important things to do
# - this minification is intended to be 100% safe, so working with multiline comments is asking for trouble