From 8659d909d39229f93a35d15d4f30960dbafe2370 Mon Sep 17 00:00:00 2001 From: Piers Lauder Date: Wed, 2 Mar 2005 09:13:45 +0000 Subject: Fix bug in InternalDate regexp that failed to allow leading 0 in day - courtesy of Rimon Barr --- Lib/imaplib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/imaplib.py b/Lib/imaplib.py index f353015..6b0576f 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'"') -- cgit v0.12