Commit ff1c7a59 authored by Michal Čihař's avatar Michal Čihař

Be less restrictive for language part of URL

People might use different strings here, so let's not be strict about
language name format and allow anything.
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent e8cd088e
......@@ -32,7 +32,7 @@ from weblate.sitemaps import SITEMAPS
import weblate.accounts.urls
# URL regexp for language code
LANGUAGE = r'(?P<lang>[^/-]{2,3}([_-][A-Za-z]{2})?(@[a-z]+)?)'
LANGUAGE = r'(?P<lang>[^/]+)'
# URL regexp for project
PROJECT = r'(?P<project>[^/]+)/'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment