mirror of https://github.com/fail2ban/fail2ban
splitwords: prevent to split to empty values by multiple separator characters together
parent
01d0506ea0
commit
156065e70d
|
@ -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 New Issue