From 2c52f67cb1a01fe1a328f56c66adcd01e1c927ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 28 Aug 2015 14:23:30 -0700 Subject: [PATCH] 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. --- fdroidserver/lint.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index f51e85bd..b5ad2970 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -103,6 +103,8 @@ regex_warnings = { "Unnecessary leading space"), (re.compile(r'.*\s$'), "Unnecessary trailing space"), + (re.compile(r'.*([^[]|^)\[[^:[\]]+( |\]|$)'), + "Invalid link - use [http://foo.bar Link title] or [http://foo.bar]"), ], }