diff options
author | lookshe <github@lookshe.org> | 2019-06-12 22:21:01 +0200 |
---|---|---|
committer | lookshe <github@lookshe.org> | 2019-06-12 22:21:01 +0200 |
commit | 072222ba43df2fd766f181e627c4ac8a8b9be45c (patch) | |
tree | 5e83e00890b45d5bd49c6029fc9f761ed2cfec36 | |
parent | 28e13bd9a248ff78c16adb3a8a84c766713806ed (diff) |
better whitespace handling
-rwxr-xr-x | buildAdBlocklist.sh | 2 |
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 { |