From 8d32a5727c59a3dc9ea07ca72d31277e0ea55ada Mon Sep 17 00:00:00 2001 From: RD WebDesign Date: Thu, 20 Jul 2023 22:56:49 -0300 Subject: [PATCH] Use the same idea for the last space Signed-off-by: RD WebDesign --- advanced/Scripts/query.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/Scripts/query.sh b/advanced/Scripts/query.sh index 30ebb0b9..025b6aef 100755 --- a/advanced/Scripts/query.sh +++ b/advanced/Scripts/query.sh @@ -50,7 +50,7 @@ fi # Strip valid options, leaving only the domain and invalid options # This allows users to place the options before or after the domain -options=$(sed -E 's/(^|\s)-(all|exact) ?//g' <<< "${options}") +options=$(sed -E 's/(^|\s)-(all|exact)($|\s)//g' <<< "${options}") # Handle remaining options # If $options contain non ASCII characters, convert to punycode