diff --git a/fail2ban/helpers.py b/fail2ban/helpers.py index c2c22a27..b864fd15 100644 --- a/fail2ban/helpers.py +++ b/fail2ban/helpers.py @@ -284,7 +284,7 @@ def splitwords(s): """ if not s: return [] - return list(filter(bool, [v.strip() for v in re.split('[\s,]+', s)])) + return list(filter(bool, [v.strip() for v in re.split(r'[\s,]+', s)])) def _merge_dicts(x, y): """Helper to merge dicts.