Skip to content

Commit 70ae9e3

Browse files
committed
Fix bug in Date RE
1 parent 998098c commit 70ae9e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/mailbox.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ class mbox(_mboxMMDF):
898898
# This is the full syntax, i.e. From sender asctime[ moreinfo]
899899
DAY_RE = b' (?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)'
900900
MON_RE = b' (?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)'
901-
DTY_RE = b' [ 0]\\d \\d\\d:\\d\\d:\\d\\d \\d{4}' # day, time, year
901+
DTY_RE = b' [ 123]\\d \\d\\d:\\d\\d:\\d\\d \\d{4}' # day, time, year
902902
FULL_RE = b'From \\S+' + DAY_RE + MON_RE + DTY_RE + b'( .+)?' + linesep + b'\\Z'
903903
# we capture the optional moreinfo group so we can check for lines that end in the date
904904

0 commit comments

Comments
 (0)