Update StringParser.cpp

This commit is contained in:
chromoxdor
2025-04-29 16:18:27 +02:00
parent a0432350f0
commit 4c2f73a9f2
+2 -2
View File
@@ -38,8 +38,8 @@ void stripEscapeCharacters(String& str)
constexpr uint8_t nrbraces = NR_ELEMENTS(braces);
for (uint8_t i = 0; i < nrbraces; ++i) {
const String s(concat(F("\\"), braces[i]));
str.replace(s, s.substring(1));
const char s[] = { '\\', braces[i], '\0'};
str.replace(s, s + 1);
}
}