Don't split tokens with digits and "/" infixes (resolves #740)

This commit is contained in:
Ines Montani 2017-01-12 22:58:26 +01:00
parent e9e99a5670
commit 0894b8c0ef

View File

@ -103,7 +103,7 @@ TOKENIZER_SUFFIXES = (
TOKENIZER_INFIXES = (
LIST_ELLIPSES +
[
r'(?<=[0-9])[+\-\*/^](?=[0-9])',
r'(?<=[0-9])[+\-\*^](?=[0-9-])',
r'(?<=[{al}])\.(?=[{au}])'.format(al=ALPHA_LOWER, au=ALPHA_UPPER),
r'(?<=[{a}]),(?=[{a}])'.format(a=ALPHA),
r'(?<=[{a}])(?:{h})(?=[{a}])'.format(a=ALPHA, h=HYPHENS),