mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-19 03:30:12 +02: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:
parent
ecd0e07e93
commit
2c52f67cb1
@ -103,6 +103,8 @@ regex_warnings = {
|
|||||||
"Unnecessary leading space"),
|
"Unnecessary leading space"),
|
||||||
(re.compile(r'.*\s$'),
|
(re.compile(r'.*\s$'),
|
||||||
"Unnecessary trailing space"),
|
"Unnecessary trailing space"),
|
||||||
|
(re.compile(r'.*([^[]|^)\[[^:[\]]+( |\]|$)'),
|
||||||
|
"Invalid link - use [http://foo.bar Link title] or [http://foo.bar]"),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user