mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
splitwords: prevent to split to empty values by multiple separator characters together
This commit is contained in:
parent
01d0506ea0
commit
156065e70d
1 changed files with 1 additions and 1 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue