mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +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(
|
std::replace_if(
|
||||||
str.begin(), str.end(),
|
str.begin(), str.end(),
|
||||||
[](const char &c) {
|
[](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;
|
return out;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user