1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 06:20:12 +01:00

Use '\s' instead of ' ' to identify spaces in regex

This commit is contained in:
Daniel Martí 2014-10-15 15:00:45 +02:00
parent f90ba4747f
commit ed9564023f

View File

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