From 5bd186b85495319f717bfc94b8eb8888003bff43 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 15 Jul 2013 13:52:42 -0400 Subject: [PATCH] ENH(minor): fail2ban-regex comment line doesn't have to have a space after leading # --- fail2ban-regex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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