From: Piers Lauder Date: Wed, 2 Mar 2005 09:13:45 +0000 (+0000) Subject: Fix bug in InternalDate regexp that failed to allow leading 0 in day - courtesy of... X-Git-Tag: v2.5a0~1987 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8659d909d39229f93a35d15d4f30960dbafe2370;p=python Fix bug in InternalDate regexp that failed to allow leading 0 in day - courtesy of Rimon Barr --- diff --git a/Lib/imaplib.py b/Lib/imaplib.py index f353015c93..6b0576fe31 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -81,7 +81,7 @@ Commands = { Continuation = re.compile(r'\+( (?P.*))?') Flags = re.compile(r'.*FLAGS \((?P[^\)]*)\)') InternalDate = re.compile(r'.*INTERNALDATE "' - r'(?P[ 123][0-9])-(?P[A-Z][a-z][a-z])-(?P[0-9][0-9][0-9][0-9])' + r'(?P[ 0123][0-9])-(?P[A-Z][a-z][a-z])-(?P[0-9][0-9][0-9][0-9])' r' (?P[0-9][0-9]):(?P[0-9][0-9]):(?P[0-9][0-9])' r' (?P[-+])(?P[0-9][0-9])(?P[0-9][0-9])' r'"')