mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +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"$"
|
||||
).strip()
|
||||
|
||||
TOKEN_MATCH = re.compile(_URL_PATTERN).match
|
||||
TOKEN_MATCH = re.compile(_URL_PATTERN, re.UNICODE).match
|
||||
|
||||
__all__ = ['TOKEN_MATCH']
|
||||
|
|
Loading…
Reference in New Issue
Block a user