|
|
@ -141,7 +141,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
|
|
|
@ -189,7 +189,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?
|
|
|
|