1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-18 20:50:10 +01:00

lint: check whether the locale was included in an f-droid.org URL

This commit is contained in:
Hans-Christoph Steiner 2019-01-03 20:48:08 +01:00
parent 78473e7dab
commit 76b026e572

View File

@ -165,6 +165,8 @@ regex_checks = {
'Description': https_enforcings + http_url_shorteners + [ 'Description': https_enforcings + http_url_shorteners + [
(re.compile(r'\s*[*#][^ .]'), (re.compile(r'\s*[*#][^ .]'),
_("Invalid bulleted list")), _("Invalid bulleted list")),
(re.compile(r'https://f-droid.org/[a-z][a-z](_[A-Za-z]{2,4})?/'),
_("Locale included in f-droid.org URL")),
(re.compile(r'^\s'), (re.compile(r'^\s'),
_("Unnecessary leading space")), _("Unnecessary leading space")),
(re.compile(r'.*\s$'), (re.compile(r'.*\s$'),