mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-07 09:51:07 +03:00
lint: add dumb support for multiline links
This commit is contained in:
parent
b9b4880b49
commit
df9b044a3b
1 changed files with 6 additions and 6 deletions
|
@ -257,12 +257,12 @@ desc_url = re.compile("[^[]\[([^ ]+)( |\]|$)")
|
|||
|
||||
|
||||
def check_mediawiki_links(app):
|
||||
for l in app['Description']:
|
||||
for um in desc_url.finditer(l):
|
||||
url = um.group(1)
|
||||
for m, r in http_checks:
|
||||
if m.match(url):
|
||||
yield "URL '%s' in Description: %s" % (url, r)
|
||||
wholedesc = ' '.join(app['Description'])
|
||||
for um in desc_url.finditer(wholedesc):
|
||||
url = um.group(1)
|
||||
for m, r in http_checks:
|
||||
if m.match(url):
|
||||
yield "URL '%s' in Description: %s" % (url, r)
|
||||
|
||||
|
||||
def check_bulleted_lists(app):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue