mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	Do not escape '/' when writing json
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user