Fix #4273
This commit is contained in:
parent
e6311edf53
commit
83041b1c97
1 changed files with 1 additions and 1 deletions
|
|
@ -792,7 +792,7 @@ def to_chr(x: str) -> int:
|
|||
return int(x[2:], 16)
|
||||
|
||||
for x in parts[0].split(','):
|
||||
a_, b_ = x.partition('-')[::2]
|
||||
a_, b_ = x.replace('–', '-').partition('-')[::2]
|
||||
b_ = b_ or a_
|
||||
try:
|
||||
a, b = map(to_chr, (a_, b_))
|
||||
|
|
|
|||
Loading…
Reference in a new issue