mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 13:50:17 +00:00
Simplified EscapeRegexp()
This commit is contained in:
parent
2061daa902
commit
509cfd15f2
1 changed files with 1 additions and 1 deletions
|
@ -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(){
|
||||
|
|
Loading…
Reference in a new issue