1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-15 15:18:16 +00:00

adjust tests

This commit is contained in:
J. Nick Koston 2023-11-21 00:16:01 +01:00
parent 2c3e576b0a
commit 54f28f7719
No known key found for this signature in database

View File

@ -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;