also keep underscore in id
This commit is contained in:
+1
-1
@@ -962,7 +962,7 @@ result_t loadScanConfigFile(MessageMap* messages, symbol_t address, bool verbose
|
|||||||
prefix.c_str(), getResultCode(result));
|
prefix.c_str(), getResultCode(result));
|
||||||
auto it = ident.begin();
|
auto it = ident.begin();
|
||||||
while (it != ident.end()) {
|
while (it != ident.end()) {
|
||||||
if (!::isalnum(*it)) {
|
if (*it != '_' && !::isalnum(*it)) {
|
||||||
it = ident.erase(it);
|
it = ident.erase(it);
|
||||||
} else {
|
} else {
|
||||||
*it = static_cast<char>(::tolower(*it));
|
*it = static_cast<char>(::tolower(*it));
|
||||||
|
|||||||
Reference in New Issue
Block a user