mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
ce0e788ce2
Previously, the tonumber/0 filter parses the input as JSON values, but this is less-performant on large non-number strings. Parsing the input string as number literal fixes the performance issue. Also, this fix changes the filter to reject numbers with white spaces.