MiSawa / xq

Pure rust implementation of jq
MIT License
333 stars 18 forks source link

Fix multiplying string #41

Closed itchyny closed 2 years ago

itchyny commented 2 years ago

This PR fixes multiplying string with negative number or NaN. Also implements {num} * {str} case.

❯ jq -n '(0,3,-3,nan) * "abc"'
null
"abcabcabc"
null
null
MiSawa commented 2 years ago

lgtm, thank you!