Merge pull request #614 from moyogo/fixunescape
[feaLib]: fix unescape_mac_name_string() and unescape_windows_name_string()
This commit is contained in:
commit
62a6222652
@ -829,7 +829,7 @@ class Parser(object):
|
|||||||
c = bytechr(int(n, 16)).decode('mac_roman')
|
c = bytechr(int(n, 16)).decode('mac_roman')
|
||||||
return c
|
return c
|
||||||
|
|
||||||
return re.sub(r'\\[0-9a-zAZ]{2}', unescape, string)
|
return re.sub(r'\\[0-9a-fA-F]{2}', unescape, string)
|
||||||
|
|
||||||
def unescape_windows_name_string(self, string):
|
def unescape_windows_name_string(self, string):
|
||||||
def unescape(match):
|
def unescape(match):
|
||||||
@ -837,7 +837,7 @@ class Parser(object):
|
|||||||
c = unichr(int(n, 16))
|
c = unichr(int(n, 16))
|
||||||
return c
|
return c
|
||||||
|
|
||||||
return re.sub(r'\\[0-9a-zAZ]{4}', unescape, string)
|
return re.sub(r'\\[0-9a-fA-F]{4}', unescape, string)
|
||||||
|
|
||||||
def parse_table_BASE_(self, table):
|
def parse_table_BASE_(self, table):
|
||||||
statements = table.statements
|
statements = table.statements
|
||||||
|
Loading…
x
Reference in New Issue
Block a user