mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-07-26 23:24:06 +02:00
Revert "Simplified EscapeRegexp()"
This reverts commit 509cfd15f27f07f4e6d99fd431b821024be86280.
This commit is contained in:
parent
509cfd15f2
commit
78cb43d0dc
@ -53,7 +53,7 @@ EOM
|
||||
EscapeRegexp() {
|
||||
# This way we may safely insert an arbitrary
|
||||
# string in our regular expressions
|
||||
echo $* | sed "s/[]\\.|$(){}?+*^]\\//\\\\&/g"
|
||||
echo $* | sed "s/[]\\.|$(){}?+*^]/\\\\&/g" | sed "s/\\//\\\\\//g"
|
||||
}
|
||||
|
||||
HandleOther(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user