util/format: allow upper case, digits and underscore in names

This commit is contained in:
Max Kellermann 2015-01-22 18:59:42 +01:00
parent e9d4b73cc3
commit 6725c2afa1

View File

@ -74,7 +74,8 @@ skip_format(const char *p)
static bool
is_name_char(char ch)
{
return ch >= 'a' && ch <= 'z';
return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') ||
(ch >= '0' && ch <= '9') || ch == '_';
}
static char *