summaryrefslogtreecommitdiff
path: root/src/core/common/Utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/common/Utils.cpp')
-rw-r--r--src/core/common/Utils.cpp2
1 files changed, 1 insertions, 1 deletions
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;