vdf-parser icon indicating copy to clipboard operation
vdf-parser copied to clipboard

Fix backslash before closing quote parsing issue

Open chelog opened this issue 2 years ago • 3 comments

Fixes edge case with value ending with a backslash, even escaped:

"UserLocalConfigStore"
{
	"friends"
	{
		"9734658" "Grocel"
		"5318652" "/Hexalitos\\" <-- this one
		"19358028" "put in"
	}
}
SyntaxError: VDF.parse: invalid syntax on line 8:
"

As an additional bonus, adds strict comparison in this line where it's appropriate

chelog avatar Nov 30 '21 18:11 chelog