Merge pull request #2334 from pi-hole/fix/gravity-count-regex

Fix gravity's regex counting logic
This commit is contained in:
Mark Drobnak 2018-08-08 16:22:50 -04:00 committed by GitHub
commit d2ae07e69b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -464,7 +464,7 @@ gravity_ShowBlockCount() {
fi
if [[ -f "${regexFile}" ]]; then
num=$(grep -c "^(?!#)" "${regexFile}")
num=$(grep -cv "^#" "${regexFile}")
echo -e " ${INFO} Number of regex filters: ${num}"
fi
}