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:
parent
f90ba4747f
commit
ed9564023f
@ -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"),
|
||||
],
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user