diff --git a/advanced/Scripts/list.sh b/advanced/Scripts/list.sh index 16bb2001..fde46552 100755 --- a/advanced/Scripts/list.sh +++ b/advanced/Scripts/list.sh @@ -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;