mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-07 09:51:07 +03:00
lint: move regex closer to usage
This commit is contained in:
parent
223db1588b
commit
b9b4880b49
1 changed files with 3 additions and 2 deletions
|
@ -121,8 +121,6 @@ def check_regexes(app):
|
|||
if m.match(l):
|
||||
yield "%s at line '%s': %s" % (f, l, r)
|
||||
|
||||
desc_url = re.compile("[^[]\[([^ ]+)( |\]|$)")
|
||||
|
||||
|
||||
def get_lastbuild(builds):
|
||||
lowest_vercode = -1
|
||||
|
@ -255,6 +253,9 @@ def check_duplicates(app):
|
|||
seenlines.add(l)
|
||||
|
||||
|
||||
desc_url = re.compile("[^[]\[([^ ]+)( |\]|$)")
|
||||
|
||||
|
||||
def check_mediawiki_links(app):
|
||||
for l in app['Description']:
|
||||
for um in desc_url.finditer(l):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue