From 0e86a48d7fab67a6f649717bb9390e0562569157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Droz?= Date: Thu, 22 Mar 2018 14:42:33 -0300 Subject: [PATCH] whitelist: handle lines having leading whitespaces --- update-blacklist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-blacklist.sh b/update-blacklist.sh index cebf9ec..5275d94 100755 --- a/update-blacklist.sh +++ b/update-blacklist.sh @@ -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() {