diff --git a/fail2ban/helpers.py b/fail2ban/helpers.py index fc51a88e..aef39835 100644 --- a/fail2ban/helpers.py +++ b/fail2ban/helpers.py @@ -136,4 +136,4 @@ def splitwords(s): """ if not s: return [] - return filter(bool, map(str.strip, re.split('[ ,\n]', s))) + return filter(bool, map(str.strip, re.split('[ ,\n]+', s)))