mirror of
https://github.com/esphome/esphome.git
synced 2025-03-13 14:18:14 +00:00
adjust tests
This commit is contained in:
parent
2c3e576b0a
commit
54f28f7719
@ -282,7 +282,7 @@ std::string str_sanitize(const std::string &str) {
|
||||
std::replace_if(
|
||||
str.begin(), str.end(),
|
||||
[](const char &c) {
|
||||
return c == '-' || c == '_' || (c >= '0' && c <= '9') || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');
|
||||
return !(c == '-' || c == '_' || (c >= '0' && c <= '9') || (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'));
|
||||
},
|
||||
'_');
|
||||
return out;
|
||||
|
Loading…
x
Reference in New Issue
Block a user