minifier fix to allow @as type hints
This commit is contained in:
parent
e847505ac2
commit
91cb51bad9
@ -28,7 +28,7 @@ def minify(path: str):
|
|||||||
contents = f.read()
|
contents = f.read()
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
if re.search(r'--+\[+', contents) != None:
|
if re.search(r'--+\[(?!\[@as)+', contents) != None:
|
||||||
# absolutely not dealing with lua multiline comments
|
# absolutely not dealing with lua multiline comments
|
||||||
# - there are more important things to do
|
# - there are more important things to do
|
||||||
# - this minification is intended to be 100% safe, so working with multiline comments is asking for trouble
|
# - this minification is intended to be 100% safe, so working with multiline comments is asking for trouble
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user