diff --git a/fail2ban-regex b/fail2ban-regex index e75cb2a3..3326e328 100755 --- a/fail2ban-regex +++ b/fail2ban-regex @@ -256,7 +256,7 @@ class Fail2banRegex(object): def process(self, test_lines): for line in test_lines: - if line.startswith('# ') or not line.strip(): + if line.startswith('#') or not line.strip(): # skip comment and empty lines continue