diff options
author | Max Kellermann <max@duempel.org> | 2015-01-22 18:59:42 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-01-22 18:59:42 +0100 |
commit | 6725c2afa13c47c4a0f713e61cc19361fd6d1186 (patch) | |
tree | df91ffa070268e743eef22d5c879a04bbdc32615 /src/util | |
parent | e9d4b73cc3ab03c9a2fa40d8a11a2351227ef044 (diff) |
util/format: allow upper case, digits and underscore in names
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/format.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/format.c b/src/util/format.c index 250bdd7ea..66243c8ec 100644 --- a/src/util/format.c +++ b/src/util/format.c @@ -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 * |