Perform EXACT searches on HOSTS lists correctly

`\s` on the end may be overkill, but it is the existing scanList() behaviour.
pull/1417/head
WaLLy3K 7 years ago committed by GitHub
parent a0603ad3b7
commit 3081c151bd

@ -86,7 +86,7 @@ scanList(){
method="${3}"
if [[ ${method} == "-exact" ]]; then
grep -i -E -l "(^|\/)${domain}($|\/)" ${list}
grep -i -E -l "(^|\s|\/)${domain}($|\s|\/)" ${list}
else
grep -i "${domain}" ${list}
fi

Loading…
Cancel
Save