diff --git a/gravity.sh b/gravity.sh index 9a5a5fd7..e5795cb6 100755 --- a/gravity.sh +++ b/gravity.sh @@ -465,7 +465,7 @@ gravity_ShowBlockCount() { fi if [[ -f "${regexFile}" ]]; then - num=$(grep -c "^" "${regexFile}") + num=$(grep -c "^(?!#)" "${regexFile}") echo -e " ${INFO} Number of regex filters: ${num}" fi }