mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-24 09:51:38 +00:00
parent
275b761fe1
commit
0594eb65c2
@ -14,6 +14,8 @@ def func_to_regex(accept_func):
|
|||||||
return a regex character class accepting the characters resulting in True.
|
return a regex character class accepting the characters resulting in True.
|
||||||
Ranges separated only by unassigned characters are merged for efficiency.
|
Ranges separated only by unassigned characters are merged for efficiency.
|
||||||
"""
|
"""
|
||||||
|
# parsing_range is True if the current codepoint might be in a range that
|
||||||
|
# the regex will accept
|
||||||
parsing_range = False
|
parsing_range = False
|
||||||
ranges = []
|
ranges = []
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user