summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2019-06-12 22:21:01 +0200
committerlookshe <github@lookshe.org>2019-06-12 22:21:01 +0200
commit072222ba43df2fd766f181e627c4ac8a8b9be45c (patch)
tree5e83e00890b45d5bd49c6029fc9f761ed2cfec36
parent28e13bd9a248ff78c16adb3a8a84c766713806ed (diff)
better whitespace handling
-rwxr-xr-xbuildAdBlocklist.sh2
1 files changed, 1 insertions, 1 deletions
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 {