description:"Custom escape character in the middle",
notes:"Must parse correctly if the backslash sign (\\) is configured as a custom escape character",
input:'a,b,"c\\"d\\"f"',
config:{escapeChar:'\\'},
expected:{
data:[['a','b','c"d"f']],
errors:[]
}
},
{
description:"Custom escape character at the end",
notes:"Must parse correctly if the backslash sign (\\) is configured as a custom escape character and the escaped quote character appears at the end of the column",
input:'a,b,"c\\"d\\""',
config:{escapeChar:'\\'},
expected:{
data:[['a','b','c"d"']],
errors:[]
}
},
{
description:"Custom escape character not used for escaping",
notes:"Must parse correctly if the backslash sign (\\) is configured as a custom escape character and appears as regular character in the text",
input:'a,b,"c\\d"',
config:{escapeChar:'\\'},
expected:{
data:[['a','b','c\\d']],
errors:[]
}
},
{
{
description:"Header row with preceding comment",
description:"Header row with preceding comment",
notes:"Must parse correctly headers if they are preceded by comments",
notes:"Must parse correctly headers if they are preceded by comments",