chiark / gitweb /
lint: catch links at the beginning too
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 28 Nov 2015 10:33:01 +0000 (11:33 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Sat, 28 Nov 2015 10:58:55 +0000 (11:58 +0100)
fdroidserver/lint.py

index db6707c1c6c3ecc139fcef2b7a2db1bcdbcdb24f..7821b5811675a413ead5ce75435c9e1b64572329 100644 (file)
@@ -178,7 +178,7 @@ def check_useless_fields(app):
     if app['Update Check Name'] == app['id']:
         yield "Update Check Name is set to the known app id - it can be removed"
 
-filling_ucms = re.compile('^(Tags.*|RepoManifest.*)')
+filling_ucms = re.compile(r'^(Tags.*|RepoManifest.*)')
 
 
 def check_checkupdates_ran(app):
@@ -255,7 +255,7 @@ def check_duplicates(app):
         seenlines.add(l)
 
 
-desc_url = re.compile("[^[]\[([^ ]+)( |\]|$)")
+desc_url = re.compile(r'(^|[^[])\[([^ ]+)( |\]|$)')
 
 
 def check_mediawiki_links(app):