From 6725c2afa13c47c4a0f713e61cc19361fd6d1186 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Thu, 22 Jan 2015 18:59:42 +0100
Subject: util/format: allow upper case, digits and underscore in names

---
 src/util/format.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 *
-- 
cgit v1.2.3