From 08da7a3841ca7dfcb627314cae1c3a668b9c7236 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 21 Apr 2011 16:59:10 -0400 Subject: [PATCH] [hb-view] Accept numbers in feature tag name Reported by Adam Twardoch. --- src/hb-view.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-view.c b/src/hb-view.c index ac55908e5..41adf20a0 100644 --- a/src/hb-view.c +++ b/src/hb-view.c @@ -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;