util/format: allow upper case, digits and underscore in names
This commit is contained in:
parent
e9d4b73cc3
commit
6725c2afa1
@ -74,7 +74,8 @@ skip_format(const char *p)
|
|||||||
static bool
|
static bool
|
||||||
is_name_char(char ch)
|
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 *
|
static char *
|
||||||
|
Loading…
Reference in New Issue
Block a user