Update StringParser.cpp

revert function
This commit is contained in:
chromoxdor
2025-04-29 18:00:21 +02:00
parent 4c2f73a9f2
commit 12056d792f
+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 char s[] = { '\\', braces[i], '\0'};
str.replace(s, s + 1);
const String s(concat(F("\\"), braces[i]));
str.replace(s, s.substring(1));
}
}