Added ability to escape double quotes in double quotes

This commit is contained in:
Mike Farah
2021-05-16 12:38:17 +10:00
parent 5340ed0ad3
commit dc464a5b10
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -12,6 +12,11 @@ var pathTests = []struct {
expectedTokens []interface{}
expectedPostFix []interface{}
}{
{
`"\""`,
append(make([]interface{}, 0), "\" (string)"),
append(make([]interface{}, 0), "\" (string)"),
},
{
`[]|join(".")`,
append(make([]interface{}, 0), "[", "EMPTY", "]", "PIPE", "JOIN", "(", ". (string)", ")"),