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

Fix list: User same wildcard regex that the UI use
This commit is contained in:
Dan Schaper
2021-03-17 11:20:12 -07:00
committed by GitHub

View File

@ -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;