1
0
Fork 0
mirror of https://gitlab.com/niansa/anyproc.git synced 2025-03-06 20:49:24 +01:00

Improved unescape

This commit is contained in:
niansa 2023-04-17 00:14:45 +02:00
parent 70d8c3bd82
commit 4edccd7c26

View file

@ -34,6 +34,7 @@ public:
for (const char c : std::string_view{str.data()+1, str.size()-2}) {
if (c != '\\') fres.push_back(c);
}
while (fres.back() == quotes) fres.pop_back();
return fres;
}