提交 08da7a38 编写于 作者: B Behdad Esfahbod

[hb-view] Accept numbers in feature tag name

Reported by Adam Twardoch.
上级 24229eb1
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册