Allow 2 digits as argument to compressor's `-c`

Support compression `-c` argument with more than one digit (eg zstd compression levels 10 to 22)
pull/617/head
Tom Hale 2025-04-25 09:59:17 +02:00 committed by GitHub
parent e68430cbe8
commit 03c1d7fb1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ reject_filtered_cmd()
if [ -n "${allow_compress}" ]; then
decompress_match="(${compress_list}) -d -c( -[pT][0-9]+)?( --long(=[0-9]+)?)?( --adapt)?"
compress_match="(${compress_list}) -c( -[0-9])?( -[pT][0-9]+)?( --long(=[0-9]+)?)?( --adapt)?"
compress_match="(${compress_list}) -c( -[0-9]{1,2})?( -[pT][0-9]+)?( --long(=[0-9]+)?)?( --adapt)?"
else
decompress_match=
compress_match=