From 33516cc9f1ad1c78c214ca83c07d6c93785efb6c Mon Sep 17 00:00:00 2001 From: Joe Wilm Date: Mon, 28 Mar 2016 09:46:25 -0700 Subject: [PATCH] Fix parsing LongWeekday for Sunday Only `Sun` was consumed, and the string being parsed would have `day` left over at the front. --- src/format/scan.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/format/scan.rs b/src/format/scan.rs index 0676fc1..b456cca 100644 --- a/src/format/scan.rs +++ b/src/format/scan.rs @@ -128,7 +128,7 @@ pub fn short_or_long_month0(s: &str) -> ParseResult<(&str, u8)> { pub fn short_or_long_weekday(s: &str) -> ParseResult<(&str, Weekday)> { // lowercased weekday names, minus first three chars static LONG_WEEKDAY_SUFFIXES: [&'static str; 7] = - ["day", "sday", "nesday", "rsday", "day", "urday", "sunday"]; + ["day", "sday", "nesday", "rsday", "day", "urday", "day"]; let (mut s, weekday) = try!(short_weekday(s));