]> de.git.xonotic.org Git - xonotic/xonotic.wiki.git/blobdiff - assets/check-and-fix.py
Mapping: Screenshots and minor clarification
[xonotic/xonotic.wiki.git] / assets / check-and-fix.py
index 92ef9a3cbc4497532a479c805981a5578fc67310..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(
     # regex (unlike re) supports non-constant length look-behinds
     return regex.compile(
         "".join(
-            [line.lstrip() for line in rgx]))
+            [line.lstrip() for line in rgx.split('\n')]))
 
 
 # examples:
 
 
 # examples: