mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-28 09:09:13 +01:00
[hb-view] Accept numbers in feature tag name
Reported by Adam Twardoch.
This commit is contained in:
1 parent
24229eb132
commit
08da7a3841
1 file changed
+3
-3
+3
-3
@@ -233,10 +233,10 @@ parse_feature_tag (char **pp, hb_feature_t *feature)
|
||||
|
||||
parse_space (pp);
|
||||
|
||||
#define ISALPHA(c) (('a' <= (c) && (c) <= 'z') || ('A' <= (c) && (c) <= 'Z'))
|
||||
while (c = **pp, ISALPHA(c))
|
||||
#define ISALNUM(c) (('a' <= (c) && (c) <= 'z') || ('A' <= (c) && (c) <= 'Z') || ('0' <= (c) && (c) <= '9'))
|
||||
while (c = **pp, ISALNUM(c))
|
||||
(*pp)++;
|
||||
#undef ISALPHA
|
||||
#undef ISALNUM
|
||||
|
||||
if (p == *pp)
|
||||
return FALSE;
|
||||
|
||||
Reference in new issue
Block a user