Skip to content

Commit 30e33bd

Browse files
committed
Fixup script
1 parent a859939 commit 30e33bd

File tree

2 files changed

+421
-269
lines changed

2 files changed

+421
-269
lines changed

scripts/unicode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ def load_east_asian_widths() -> "list[EffectiveWidth]":
106106
`Ambiguous` chracters are assigned `EffectiveWidth.AMBIGUOUS`."""
107107
with fetch_open("EastAsianWidth.txt") as eaw:
108108
# matches a width assignment for a single codepoint, i.e. "1F336;N # ..."
109-
single = re.compile(r"^([0-9A-F]+);(\w+) +# (\w+)")
109+
single = re.compile(r"^([0-9A-F]+)\s+;\s+(\w+) +# (\w+)")
110110
# matches a width assignment for a range of codepoints, i.e. "3001..3003;W # ..."
111-
multiple = re.compile(r"^([0-9A-F]+)\.\.([0-9A-F]+);(\w+) +# (\w+)")
111+
multiple = re.compile(r"^([0-9A-F]+)\.\.([0-9A-F]+)\s+;\s+(\w+) +# (\w+)")
112112
# map between width category code and condensed width
113113
width_codes = {
114114
**{c: EffectiveWidth.NARROW for c in ["N", "Na", "H"]},

0 commit comments

Comments
 (0)