1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

Avoid some false positives in the punctuation check

This commit is contained in:
Daniel Martí 2014-03-24 01:02:11 +01:00
parent 29ab3cf64d
commit eee7f8b4f6

View 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"),
],
}