From 91cb51bad97a2c787958bd886e0fdff90911fc79 Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sat, 19 Oct 2024 13:58:56 -0400 Subject: [PATCH] minifier fix to allow @as type hints --- build/safemin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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