From ed9564023f20e475d0022fa1c171445f8f508332 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Wed, 15 Oct 2014 15:00:45 +0200 Subject: [PATCH] Use '\s' instead of ' ' to identify spaces in regex --- fdroidserver/lint.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"), ], } -- 2.30.2