Don't count commented out regex lines
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user