mirror of https://github.com/fail2ban/fail2ban
ENH(minor): fail2ban-regex comment line doesn't have to have a space after leading #
parent
2c8747cc76
commit
5bd186b854
|
@ -256,7 +256,7 @@ class Fail2banRegex(object):
|
||||||
def process(self, test_lines):
|
def process(self, test_lines):
|
||||||
|
|
||||||
for line in 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
|
# skip comment and empty lines
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue