]> de.git.xonotic.org Git - xonotic/xonotic.wiki.git/commitdiff
i tend to copy paste this and it doesn't end well
authorMartin Taibr <taibr.martin@gmail.com>
Wed, 18 Oct 2017 10:53:24 +0000 (12:53 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Wed, 18 Oct 2017 10:53:24 +0000 (12:53 +0200)
assets/check-and-fix.py

index 0c768533b9e30a05d98720b6f55643db93aab218..92ef9a3cbc4497532a479c805981a5578fc67310 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]))
 
 
 # examples: