From: Daniel Martí Date: Sat, 28 Nov 2015 08:52:55 +0000 (+0100) Subject: lint: also catch gitlab master links X-Git-Tag: 0.6.0~92 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=41690b7508d4648c5072bf9ab089434b93c4267a;p=fdroidserver.git lint: also catch gitlab master links --- diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index 82c6eddd..db6707c1 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -55,7 +55,7 @@ http_url_shorteners = [ http_checks = https_enforcings + http_url_shorteners + [ (re.compile(r'.*github\.com/[^/]+/[^/]+\.git'), "Appending .git is not necessary"), - (re.compile(r'(.*/blob/master/|.*raw\.github.com/[^/]*/[^/]*/master/)'), + (re.compile(r'(.*/blob/master/|.*raw\.github.com/[^/]*/[^/]*/master/|.*/raw/master/)'), "Use /HEAD/ instead of /master/ to point at a file in the default branch"), ]