mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-23 21:30:17 +00:00
Fix stickler complaints
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
parent
af5fc6547a
commit
1ca852191f
1 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ AddDomain() {
|
|||
bool=true
|
||||
domain="${1}"
|
||||
|
||||
[[ "${wildcard}" == true ]] && domain="((^)|(\\.))$(echo "${domain}" | sed "s/\./\\\./g")$"
|
||||
[[ "${wildcard}" == true ]] && domain="((^)|(\\.))${domain//\\./\\\.}$"
|
||||
|
||||
# Is the domain in the list?
|
||||
# Search only for exactly matching lines
|
||||
|
@ -186,7 +186,7 @@ RemoveDomain() {
|
|||
[[ -z "${type}" ]] && type="--wildcard-only"
|
||||
domain="${1}"
|
||||
|
||||
[[ "${wildcard}" == true ]] && domain="((^)|(\\.))$(echo "${domain}" | sed "s/\./\\\./g")$"
|
||||
[[ "${wildcard}" == true ]] && domain="((^)|(\\.))${domain//\\./\\\.}$"
|
||||
|
||||
bool=true
|
||||
# Is it in the list?
|
||||
|
|
Loading…
Reference in a new issue