X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic.wiki.git;a=blobdiff_plain;f=assets%2Fcheck-and-fix.py;h=f69d206703ee1b0a6149c9491e240abf35de96e3;hp=92ef9a3cbc4497532a479c805981a5578fc67310;hb=a55d4536fa91f419b8091727d1e207b69324e87c;hpb=a6ef10bf17bf1bf0586bde72145d5d6627ef84e8 diff --git a/assets/check-and-fix.py b/assets/check-and-fix.py index 92ef9a3..f69d206 100755 --- a/assets/check-and-fix.py +++ b/assets/check-and-fix.py @@ -31,7 +31,7 @@ def compile_regex(rgx: str): # 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: