Skip to content

Release v0.2.2, added `matches` for regular expression support

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 25 Dec 15:53

Release v0.2.2, added matches for regular expression support

$ echo '{}' | jp 'matches(`"foobarbaz"`, `"baz"`)'
true

$ echo '{}' | jp 'matches(`"This and these"`, `"t(his|h[eo]se)"`)'
true

$ echo '{}' | jp 'matches(`"Those people"`, `"t(his|h[eo]se)"`)'
false

$ echo '{}' | jp 'matches(`"THOSE people"`, `"(?i)t(his|h[eo]se)"`)'
true

$ echo '"foobarbaz"' | jp 'matches(@, `"baz"`)'
true

Changelog

  • e945bbe - [#] go mod tidy
  • d5ee648 - [#] replace go-jmespath with improved
  • 4f58cb0 - [!] fix go.mod order
  • b1b17b8 - [#] update to upstream version scheme
  • c313432 - [+] added GitHub Action to build releases
  • 54882e0 Update README to donwload latest jp version on Linux