mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-05 08:51:06 +03: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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue