Skip to content

Commit 6f796a1

Browse files
committed
the u|uni is not optional
(in either context of this regex)
1 parent 3ccffaa commit 6f796a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

goadbWriter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _make_agd_dict():
7878
are deliberately omitted.
7979
'''
8080
agd_data = _load_agd_data()
81-
rx_uni_name = r'^(?:u|uni)?([0-9A-F]{4,16})$'
81+
rx_uni_name = r'^(?:u|uni)([0-9A-F]{4,16})$'
8282
# (?:u|uni): the ?: is flagging a non-capturing group
8383
# the AGD may contains final names which combine multiple code points,
8484
# such as uni093F0930094D0902
@@ -363,7 +363,7 @@ def assign_final_and_cp_override(self):
363363
# could be omitted (`uni20` -- although I have not seen that yet).
364364
# The last Unicode Plane (16) ends at 10FFFF, so allowing code points
365365
# up to FFFFFF should be enough.
366-
rx_uni_name = r'^(?:u|uni)?([0-9A-F]{1,6})$'
366+
rx_uni_name = r'^(?:u|uni)([0-9A-F]{1,6})$'
367367
uni_name_match = re.match(rx_uni_name, self.gn_friendly)
368368

369369
# glyph name is in AGD

0 commit comments

Comments
 (0)