diff --git a/build/safemin.py b/build/safemin.py index 2576159..1567b5f 100644 --- a/build/safemin.py +++ b/build/safemin.py @@ -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