We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27220d5 commit 4f34622Copy full SHA for 4f34622
1 file changed
generators/include/pl/formatters/formatter_json.hpp
@@ -67,7 +67,8 @@ namespace pl::gen::fmt {
67
const auto string = pattern->toString();
68
69
std::string result;
70
- for (const auto &ch : wolv::util::utf8ToUtf32(string, true).value()) {
+ const auto decodedString = wolv::util::utf8ToUtf32(string, true).value();
71
+ for (const auto &ch : decodedString) {
72
switch (ch) {
73
case U'"': result += "\\\""; break;
74
case U'\\': result += "\\\\"; break;
0 commit comments