From d8e48a60b0a9a2b025078bf6b38e360e0ec7e23b Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Wed, 29 Jun 2022 18:36:22 +0200 Subject: properly accept character escaping in VDF files --- src/vdf/tests/files/registry.vdf | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) (limited to 'src/vdf/tests/files') diff --git a/src/vdf/tests/files/registry.vdf b/src/vdf/tests/files/registry.vdf index 0e400bf..60bdfaf 100644 --- a/src/vdf/tests/files/registry.vdf +++ b/src/vdf/tests/files/registry.vdf @@ -11,34 +11,16 @@ "empty" { } - "slash-test" - { - "key\"string" "value\"string" - } "steamglobal" { "language" "english" } - "Apps" + "escape_test" { - "10090" - { - "installed" "1" - "Updating" "0" - "Running" "0" - } - "1245040" - { - "installed" "1" - "Updating" "0" - "Running" "0" - } - "287700" - { - "installed" "1" - "Updating" "0" - "Running" "0" - } + "double\"quote" "ab\"cd" + "tab\tulator" "ab\tcd" + "new\nline" "ab\ncd" + "back\\slash" "ab\\cd" } } } -- cgit v1.2.3