From 072222ba43df2fd766f181e627c4ac8a8b9be45c Mon Sep 17 00:00:00 2001 From: lookshe Date: Wed, 12 Jun 2019 22:21:01 +0200 Subject: better whitespace handling --- buildAdBlocklist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildAdBlocklist.sh b/buildAdBlocklist.sh index 6707327..181f485 100755 --- a/buildAdBlocklist.sh +++ b/buildAdBlocklist.sh @@ -1,6 +1,6 @@ #!/bin/bash awk -F'[\t ]+' '{ - if (!match($0, /^\s*(#|$)/)) { + if (!match($0, /^[\t ]*(#|$)/)) { if (NF>=2 && length($2)) { host=$2 } else { -- cgit v1.2.3