mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Do not escape '/' when writing json
This commit is contained in:
parent
25146bfa93
commit
a2b8eaf7fb
@ -63,9 +63,8 @@ void JsonWriter::writeEntry(JsonVector::const_iterator entry)
|
||||
|
||||
void JsonWriter::writeString(const std::string &string)
|
||||
{
|
||||
static const std::string escaped = "\"\\\b\f\n\r\t/";
|
||||
|
||||
static const std::array<char, 8> escaped_code = {'\"', '\\', 'b', 'f', 'n', 'r', 't', '/'};
|
||||
static const std::string escaped = "\"\\\b\f\n\r\t";
|
||||
static const std::array escaped_code = {'\"', '\\', 'b', 'f', 'n', 'r', 't'};
|
||||
|
||||
out <<'\"';
|
||||
size_t pos = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user