From db31eddd7e05301b598c6eefbf3c695a88f18eb6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Sun, 25 Oct 2015 00:07:33 +0200 Subject: [PATCH] lint: fix unlinkified links regex It was incorrectly matching: foo [http://bar and not matching: http://foo (start of line) --- fdroidserver/lint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index fb2ce2c0..82c6eddd 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -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]"), ], } -- 2.30.2