]> git.xonotic.org Git - xonotic/xonotic.wiki.git/blobdiff - assets/check-and-fix.py
Upload attachment zzz-bai-quickmenu-v2.pk3
[xonotic/xonotic.wiki.git] / assets / check-and-fix.py
index 0c768533b9e30a05d98720b6f55643db93aab218..f69d206703ee1b0a6149c9491e240abf35de96e3 100755 (executable)
@@ -31,7 +31,7 @@ def compile_regex(rgx: str):
     # regex (unlike re) supports non-constant length look-behinds
     return regex.compile(
         "".join(
-            [line.strip() for line in rgx]))
+            [line.lstrip() for line in rgx.split('\n')]))
 
 
 # examples: