1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

lint: complain if link url isn't a url

Moving this check from metadata into lint is perhaps overkill, but at least it
doesn't break fdroid update because of the maintainer notes.
This commit is contained in:
Daniel Martí 2015-08-28 14:23:30 -07:00
parent ecd0e07e93
commit 2c52f67cb1

View File

@ -103,6 +103,8 @@ regex_warnings = {
"Unnecessary leading space"),
(re.compile(r'.*\s$'),
"Unnecessary trailing space"),
(re.compile(r'.*([^[]|^)\[[^:[\]]+( |\]|$)'),
"Invalid link - use [http://foo.bar Link title] or [http://foo.bar]"),
],
}