scripts/list: User same wildcard regex that the UI use
The CLI and the UI should do the same to be able to add/remove the same records via any supported interface. Signed-off-by: Andras Tim <andras.tim@gmail.com>
This commit is contained in:
@ -112,7 +112,7 @@ ProcessDomainList() {
|
|||||||
for dom in "${domList[@]}"; do
|
for dom in "${domList[@]}"; do
|
||||||
# Format domain into regex filter if requested
|
# Format domain into regex filter if requested
|
||||||
if [[ "${wildcard}" == true ]]; then
|
if [[ "${wildcard}" == true ]]; then
|
||||||
dom="(^|\\.)${dom//\./\\.}$"
|
dom="(\\.|^)${dom//\./\\.}$"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Logic: If addmode then add to desired list and remove from the other;
|
# Logic: If addmode then add to desired list and remove from the other;
|
||||||
|
Reference in New Issue
Block a user