From 65eb960f1eaa1fe2925b03f3740e2eff3c21dafc Mon Sep 17 00:00:00 2001 From: Friedrich Lindenberg Date: Wed, 19 Sep 2018 15:04:26 +0200 Subject: [PATCH] restore compatibility with older versions of regex --- flanker/mime/message/headers/wrappers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flanker/mime/message/headers/wrappers.py b/flanker/mime/message/headers/wrappers.py index 7eece681..a708c686 100644 --- a/flanker/mime/message/headers/wrappers.py +++ b/flanker/mime/message/headers/wrappers.py @@ -182,7 +182,7 @@ def scan(cls, string): class Subject(six.text_type): - RE_RE = re.compile("((RE|FW|FWD|HA)([[]\d])*:\s*)*", re.I) + RE_RE = re.compile("((RE|FW|FWD|HA)([\[\]\d])*:\s*)*", re.I) def __new__(cls, *args, **kw): return six.text_type.__new__(cls, *args, **kw)