Make regex locale-independent for Python 2

This commit is contained in:
ines 2017-03-10 14:21:57 +01:00
parent 9019658b40
commit b04893a059

View File

@ -45,6 +45,6 @@ _URL_PATTERN = (
r"$"
).strip()
TOKEN_MATCH = re.compile(_URL_PATTERN).match
TOKEN_MATCH = re.compile(_URL_PATTERN, re.UNICODE).match
__all__ = ['TOKEN_MATCH']