mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Make regex locale-independent for Python 2
This commit is contained in:
parent
9019658b40
commit
b04893a059
|
@ -45,6 +45,6 @@ _URL_PATTERN = (
|
||||||
r"$"
|
r"$"
|
||||||
).strip()
|
).strip()
|
||||||
|
|
||||||
TOKEN_MATCH = re.compile(_URL_PATTERN).match
|
TOKEN_MATCH = re.compile(_URL_PATTERN, re.UNICODE).match
|
||||||
|
|
||||||
__all__ = ['TOKEN_MATCH']
|
__all__ = ['TOKEN_MATCH']
|
||||||
|
|
Loading…
Reference in New Issue
Block a user