From 509cfd15f27f07f4e6d99fd431b821024be86280 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Fri, 2 Dec 2016 14:17:34 +0100 Subject: [PATCH] Simplified EscapeRegexp() --- advanced/Scripts/list.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/Scripts/list.sh b/advanced/Scripts/list.sh index 37a17a0f..ca038ef3 100755 --- a/advanced/Scripts/list.sh +++ b/advanced/Scripts/list.sh @@ -53,7 +53,7 @@ EOM EscapeRegexp() { # This way we may safely insert an arbitrary # string in our regular expressions - echo $* | sed "s/[]\\.|$(){}?+*^]/\\\\&/g" | sed "s/\\//\\\\\//g" + echo $* | sed "s/[]\\.|$(){}?+*^]\\//\\\\&/g" } HandleOther(){