mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40: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"),
|
||||
(re.compile(r'.*([^[]|^)\[[^:[\]]+( |\]|$)'),
|
||||
"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]"),
|
||||
],
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue