chiark / gitweb /
Use '\s' instead of ' ' to identify spaces in regex
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 15 Oct 2014 13:00:45 +0000 (15:00 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 15 Oct 2014 13:00:45 +0000 (15:00 +0200)
fdroidserver/lint.py

index ff1c0c7c175c3f7fc911961a2632472d4a788fa0..3f95117a4a022d1fcd877c6018799581eef0015a 100644 (file)
@@ -85,11 +85,11 @@ regex_warnings = {
     'Description': [
         (re.compile(r'^No description available$'),
          "Description yet to be filled"),
-        (re.compile(r'[ ]*[*#][^ .]'),
+        (re.compile(r'\s*[*#][^ .]'),
          "Invalid bulleted list"),
-        (re.compile(r'^ '),
+        (re.compile(r'^\s'),
          "Unnecessary leading space"),
-        (re.compile(r'.* $'),
+        (re.compile(r'.*\s$'),
          "Unnecessary trailing space"),
         ],
 }