ENH(minor): fail2ban-regex comment line doesn't have to have a space after leading #

pull/298/merge
Yaroslav Halchenko 2013-07-15 13:52:42 -04:00
parent 2c8747cc76
commit 5bd186b854
1 changed files with 1 additions and 1 deletions

View File

@ -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