Skip to content

Commit

Permalink
Correct charcter class use in sh_escape
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Nov 25, 2024
1 parent e35c266 commit 482c422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jqjq.jq
Original file line number Diff line number Diff line change
Expand Up @@ -2737,7 +2737,7 @@ def parse_options:
def invoke_client_jqjq:
# instead of @sh to not always quote (as per quoting rules of ${var@Q})
def sh_escape:
if . == "" or test("[^[A-Za-z0-9%+\\-./:=@_]]") then
if . == "" or test("[^A-Za-z0-9%+\\-./:=@_]") then
"'" + gsub("'"; "'\\''") + "'"
end;
( . as $args
Expand Down

0 comments on commit 482c422

Please sign in to comment.