Fix parsing LongWeekday for Sunday

Only `Sun` was consumed, and the string being parsed would have `day`
left over at the front.
This commit is contained in:
Joe Wilm 2016-03-28 09:46:25 -07:00
parent 260342a592
commit 33516cc9f1
1 changed files with 1 additions and 1 deletions

View File

@ -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));