chiark / gitweb /
Avoid some false positives in the punctuation check
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 24 Mar 2014 00:02:11 +0000 (01:02 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 24 Mar 2014 00:02:11 +0000 (01:02 +0100)
fdroidserver/lint.py

index 079c2baf24b40c30b918ec6343f42aa52f0d5fff..ab3265132f9d451c65971cd910e38627573757fb 100644 (file)
@@ -106,7 +106,7 @@ regex_pedantic = {
                 "No need to specify that the app is... an app"),
             (re.compile(r'.*\b(free software|open source)\b.*', re.IGNORECASE),
                 "No need to specify that the app is Free Software"),
-            (re.compile(r'.*[.,!?].*'),
+            (re.compile(r'.*[a-z0-9][.,!?][ $]'),
                 "Punctuation should be avoided"),
         ],
 }