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