mirror of
https://github.com/esphome/esphome.git
synced 2025-02-22 04:48:21 +00:00
fix to_lower filter (#4015)
This commit is contained in:
parent
3aeef1afd4
commit
fcb02af782
@ -51,7 +51,7 @@ optional<std::string> ToUpperFilter::new_value(std::string value) {
|
|||||||
// ToLowerFilter
|
// ToLowerFilter
|
||||||
optional<std::string> ToLowerFilter::new_value(std::string value) {
|
optional<std::string> ToLowerFilter::new_value(std::string value) {
|
||||||
for (char &c : value)
|
for (char &c : value)
|
||||||
c = ::toupper(c);
|
c = ::tolower(c);
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user