From 58b0dcbaabb36df43b4bfa4c74a963d8b24a54fe Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Fri, 12 Dec 2014 02:15:45 +0100 Subject: fixed bug in Utils::isIdentifier and added regression test --- src/core/common/Utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/common/Utils.cpp') diff --git a/src/core/common/Utils.cpp b/src/core/common/Utils.cpp index c460ed4..5eaafe9 100644 --- a/src/core/common/Utils.cpp +++ b/src/core/common/Utils.cpp @@ -48,7 +48,7 @@ bool Utils::isIdentifier(const std::string &name) if (first && !(isAlphabetic(c) || c == '_')) { return false; } - if (first && !(isAlphanumeric(c) || c == '_' || c == '-')) { + if (!first && !(isAlphanumeric(c) || c == '_' || c == '-')) { return false; } first = false; -- cgit v1.2.3