Decoder: flag invalid carriage returns in literal strings (#673)
This commit is contained in:
@@ -2544,10 +2544,18 @@ world'`,
|
||||
desc: `carriage return inside basic key`,
|
||||
data: "\"\r\"=42",
|
||||
},
|
||||
{
|
||||
desc: `carriage return inside literal key`,
|
||||
data: "'\r'=42",
|
||||
},
|
||||
{
|
||||
desc: `carriage return inside basic string`,
|
||||
data: "A = \"\r\"",
|
||||
},
|
||||
{
|
||||
desc: `carriage return inside literal string`,
|
||||
data: "A = '\r'",
|
||||
},
|
||||
{
|
||||
desc: `carriage return in comment`,
|
||||
data: "# this is a test\ra=1",
|
||||
|
||||
Reference in New Issue
Block a user