mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 06:52:39 +03:00
Use '\s' instead of ' ' to identify spaces in regex
This commit is contained in:
parent
f90ba4747f
commit
ed9564023f
1 changed files with 3 additions and 3 deletions
|
@ -85,11 +85,11 @@ regex_warnings = {
|
||||||
'Description': [
|
'Description': [
|
||||||
(re.compile(r'^No description available$'),
|
(re.compile(r'^No description available$'),
|
||||||
"Description yet to be filled"),
|
"Description yet to be filled"),
|
||||||
(re.compile(r'[ ]*[*#][^ .]'),
|
(re.compile(r'\s*[*#][^ .]'),
|
||||||
"Invalid bulleted list"),
|
"Invalid bulleted list"),
|
||||||
(re.compile(r'^ '),
|
(re.compile(r'^\s'),
|
||||||
"Unnecessary leading space"),
|
"Unnecessary leading space"),
|
||||||
(re.compile(r'.* $'),
|
(re.compile(r'.*\s$'),
|
||||||
"Unnecessary trailing space"),
|
"Unnecessary trailing space"),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue