reject values starting with escape sequences if escaping support is turned on

This commit is contained in:
Arthur Passos 2023-04-12 15:37:58 -03:00
parent a97fa9a449
commit ee6ad4a461

View File

@ -195,6 +195,14 @@ public:
{
return {pos, State::WAITING_KEY};
}
if constexpr (WITH_ESCAPING)
{
if (isEscapeCharacter(current_character))
{
return {pos, State::WAITING_KEY};
}
}
}
return {pos, State::READING_VALUE};