Merge pull request #3982 from andras-tim/list-fix-same-wildcard-regex

Fix list: User same wildcard regex that the UI use
pull/4095/head
Dan Schaper 3 years ago committed by GitHub
commit f27fd9f899
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -112,7 +112,7 @@ ProcessDomainList() {
for dom in "${domList[@]}"; do
# Format domain into regex filter if requested
if [[ "${wildcard}" == true ]]; then
dom="(^|\\.)${dom//\./\\.}$"
dom="(\\.|^)${dom//\./\\.}$"
fi
# Logic: If addmode then add to desired list and remove from the other;

Loading…
Cancel
Save