chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29ab3cf
)
Avoid some false positives in the punctuation check
author
Daniel Martí
<mvdan@mvdan.cc>
Mon, 24 Mar 2014 00:02:11 +0000
(
01:02
+0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Mon, 24 Mar 2014 00:02:11 +0000
(
01:02
+0100)
fdroidserver/lint.py
patch
|
blob
|
history
diff --git
a/fdroidserver/lint.py
b/fdroidserver/lint.py
index 079c2baf24b40c30b918ec6343f42aa52f0d5fff..ab3265132f9d451c65971cd910e38627573757fb 100644
(file)
--- 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"),
],
}