Skip to content

Commit

Permalink
whitelist: handle lines having leading whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Droz committed Mar 22, 2018
1 parent b70da53 commit 0e86a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update-blacklist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ do
done

ip_list_to_regexp() {
sed -r -e '/^ *$/d' -e '/^#/d' -e '/^[0-9]/s/^/^/' -e 's/([^\\])\./\1\\./g'
sed -r -e '/^ *$/d' -e '/^#/d' -e '/^ *[0-9]/s/^ */^/' -e 's/([^\\])\./\1\\./g'
}

filterout_whitelisted() {
Expand Down

0 comments on commit 0e86a48

Please sign in to comment.