From: Daniel Martí Date: Wed, 15 Oct 2014 13:00:45 +0000 (+0200) Subject: Use '\s' instead of ' ' to identify spaces in regex X-Git-Tag: 0.3.0~43 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ed9564023f20e475d0022fa1c171445f8f508332;p=fdroidserver.git Use '\s' instead of ' ' to identify spaces in regex --- diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index ff1c0c7c..3f95117a 100644 --- 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"), ], }