[test] Ignor 'n' and 'i' in hb-unicode-encode

Allows accepting uniXXXX format.
This commit is contained in:
Behdad Esfahbod 2015-04-23 14:32:33 -07:00
parent 39851ce84e
commit 8f0a4d6714

View File

@ -414,7 +414,7 @@ class Unicode:
@staticmethod
def parse (s):
s = re.sub (r"0[xX]", " ", s)
s = re.sub (r"[<+>,;&#\\xXuU\n ]", " ", s)
s = re.sub (r"[<+>,;&#\\xXuUnNiI\n ]", " ", s)
return [int (x, 16) for x in s.split ()]
@staticmethod