mirror of
https://github.com/nlohmann/json
synced 2024-11-23 20:40:08 +00:00
💬 replaced "backspace" with "backslash" #509
This commit is contained in:
parent
9b764ee5d6
commit
723c875604
@ -11586,7 +11586,7 @@ class basic_json
|
||||
|
||||
// other characters after escape
|
||||
default:
|
||||
error_message = "invalid string: forbidden character after backspace";
|
||||
error_message = "invalid string: forbidden character after backslash";
|
||||
return token_type::parse_error;
|
||||
}
|
||||
|
||||
|
@ -798,7 +798,7 @@ TEST_CASE("parser class")
|
||||
if (c > 0x1f)
|
||||
{
|
||||
CHECK_THROWS_WITH(parse_string(s.c_str()).parse(),
|
||||
"[json.exception.parse_error.101] parse error at 3: syntax error - invalid string: forbidden character after backspace; last read '\"\\" + std::string(1, static_cast<char>(c)) + "'");
|
||||
"[json.exception.parse_error.101] parse error at 3: syntax error - invalid string: forbidden character after backslash; last read '\"\\" + std::string(1, static_cast<char>(c)) + "'");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user