Fix regex period substitution due to switching to bashism

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12 2018-07-08 15:56:15 -04:00
parent 1ca852191f
commit 8084c4b2a3
No known key found for this signature in database
GPG key ID: ABB8FC9789AF524D

View file

@ -138,7 +138,7 @@ AddDomain() {
bool=true bool=true
domain="${1}" domain="${1}"
[[ "${wildcard}" == true ]] && domain="((^)|(\\.))${domain//\\./\\\.}$" [[ "${wildcard}" == true ]] && domain="((^)|(\\.))${domain//\./\\.}$"
# Is the domain in the list? # Is the domain in the list?
# Search only for exactly matching lines # Search only for exactly matching lines
@ -186,7 +186,7 @@ RemoveDomain() {
[[ -z "${type}" ]] && type="--wildcard-only" [[ -z "${type}" ]] && type="--wildcard-only"
domain="${1}" domain="${1}"
[[ "${wildcard}" == true ]] && domain="((^)|(\\.))${domain//\\./\\\.}$" [[ "${wildcard}" == true ]] && domain="((^)|(\\.))${domain//\./\\.}$"
bool=true bool=true
# Is it in the list? # Is it in the list?