-
Notifications
You must be signed in to change notification settings - Fork 103
Open
Description
I may escape a single quote symbol in a path using \
For instance:
jmespath.search(
[{ state: "W'A" }, { state: "N'Y" }, { state: "W'A" }, { state: "W'A" }],
`length([?state == 'W\\'A'])`,
)
// Result: 3But I can escape only one single quote in a raw string literal.
For instance:
jmespath.search(
[{ state: "W'A'A" }, { state: "N'Y" }, { state: "W'A'A" }, { state: "W'A'A" }],
`length([?state == 'W\\'A\\'A'])`,
)
// Result: 0Expected behaviour:
Ability to escape as many single quotes as you want in a string literal using \ symbol.
Metadata
Metadata
Assignees
Labels
No labels