From 26b89936a899057c6b4be283753662440375f2b2 Mon Sep 17 00:00:00 2001 From: john30 Date: Sat, 3 Jun 2017 12:54:08 +0200 Subject: [PATCH] also keep underscore in id --- src/ebusd/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ebusd/main.cpp b/src/ebusd/main.cpp index bfb95e07..078ded3c 100644 --- a/src/ebusd/main.cpp +++ b/src/ebusd/main.cpp @@ -962,7 +962,7 @@ result_t loadScanConfigFile(MessageMap* messages, symbol_t address, bool verbose prefix.c_str(), getResultCode(result)); auto it = ident.begin(); while (it != ident.end()) { - if (!::isalnum(*it)) { + if (*it != '_' && !::isalnum(*it)) { it = ident.erase(it); } else { *it = static_cast(::tolower(*it));