From eee7f8b4f6973f85c3fe0bce05e4d2b4d13c3e32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Mon, 24 Mar 2014 01:02:11 +0100 Subject: [PATCH] Avoid some false positives in the punctuation check --- fdroidserver/lint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"), ], }