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 Feb 12, 2019
1 parent 969fabc commit 621c673
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 @@ -75,7 +75,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 621c673

Please sign in to comment.