mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
lint: fix unlinkified links regex
It was incorrectly matching: foo [http://bar and not matching: http://foo (start of line)
This commit is contained in:
parent
ab667992c7
commit
db31eddd7e
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ regex_checks = {
|
||||||
"Unnecessary trailing space"),
|
"Unnecessary trailing space"),
|
||||||
(re.compile(r'.*([^[]|^)\[[^:[\]]+( |\]|$)'),
|
(re.compile(r'.*([^[]|^)\[[^:[\]]+( |\]|$)'),
|
||||||
"Invalid link - use [http://foo.bar Link title] or [http://foo.bar]"),
|
"Invalid link - use [http://foo.bar Link title] or [http://foo.bar]"),
|
||||||
(re.compile(r'.*[^[]https?://[^ ]+'),
|
(re.compile(r'(^|.* )https?://[^ ]+'),
|
||||||
"Unlinkified link - use [http://foo.bar Link title] or [http://foo.bar]"),
|
"Unlinkified link - use [http://foo.bar Link title] or [http://foo.bar]"),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue