Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected parse result #95

Open
Fmajor opened this issue Jan 29, 2024 · 0 comments
Open

unexpected parse result #95

Fmajor opened this issue Jan 29, 2024 · 0 comments

Comments

@Fmajor
Copy link

Fmajor commented Jan 29, 2024

  • jmespath: ^0.16.0
# good result 
jmespath.search({desc: "a55555e"}, "starts_with(desc, 'a')") => true
jmespath.search({desc: "ae55555e"}, "starts_with(desc, 'a')") => true
jmespath.search({desc: "e55555e"}, "desc") => "e55555e"
jmespath.search({desc: "c5555e"}, "starts_with(desc, 'c')") => true
jmespath.search({desc: "f5555e"}, "starts_with(desc, 'f')") => true
# bad result
jmespath.search({desc: "e55555e"}, "starts_with(desc, 'e')") => false # we should get true
jmespath.search({desc: "55555e"}, "starts_with(desc, '5')") => false # we should get true
jmespath.search({name: "e5555e"}, "starts_with(name, 'e')") => false # we should get true
jmespath.search({name: "5555e"}, "starts_with(name, '5')") => false  # we should get true

it seems that we get error to use starts_with for strings that starts with number or e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant