mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 23:18:10 +01:00
fix to_lower filter (#4015)
This commit is contained in:
parent
27a339fa12
commit
2f18ae00c5
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue