mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
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:
commit
f27fd9f899
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue