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:
parent
260342a592
commit
33516cc9f1
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue