From: Daniel Martí Date: Mon, 24 Mar 2014 00:02:11 +0000 (+0100) Subject: Avoid some false positives in the punctuation check X-Git-Tag: 0.2~169 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=eee7f8b4f6973f85c3fe0bce05e4d2b4d13c3e32;p=fdroidserver.git Avoid some false positives in the punctuation check --- diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index 079c2baf..ab326513 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -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"), ], }