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:
f90ba47
)
Use '\s' instead of ' ' to identify spaces in regex
author
Daniel Martí
<mvdan@mvdan.cc>
Wed, 15 Oct 2014 13:00:45 +0000
(15:00 +0200)
committer
Daniel Martí
<mvdan@mvdan.cc>
Wed, 15 Oct 2014 13:00:45 +0000
(15:00 +0200)
fdroidserver/lint.py
patch
|
blob
|
history
diff --git
a/fdroidserver/lint.py
b/fdroidserver/lint.py
index ff1c0c7c175c3f7fc911961a2632472d4a788fa0..3f95117a4a022d1fcd877c6018799581eef0015a 100644
(file)
--- a/
fdroidserver/lint.py
+++ b/
fdroidserver/lint.py
@@
-85,11
+85,11
@@
regex_warnings = {
'Description': [
(re.compile(r'^No description available$'),
"Description yet to be filled"),
- (re.compile(r'
[ ]
*[*#][^ .]'),
+ (re.compile(r'
\s
*[*#][^ .]'),
"Invalid bulleted list"),
- (re.compile(r'^
'),
+ (re.compile(r'^
\s
'),
"Unnecessary leading space"),
- (re.compile(r'.*
$'),
+ (re.compile(r'.*
\s
$'),
"Unnecessary trailing space"),
],
}