Decoder: flag invalid carriage returns in strings (#652)

Fixes #651
This commit is contained in:
Thomas Pelletier
2021-11-02 10:02:25 -04:00
committed by GitHub
parent 85c0658984
commit 3dbca20bc9
3 changed files with 17 additions and 41 deletions
+8
View File
@@ -2211,6 +2211,14 @@ world'`,
desc: `invalid month`,
data: `a=2021-0--29`,
},
{
desc: `carriage return inside basic key`,
data: "\"\r\"=42",
},
{
desc: `carriage return inside basic string`,
data: "A = \"\r\"",
},
}
for _, e := range examples {