diff --git a/src/items/time.rs b/src/items/time.rs index 3c90f69..0c303d9 100644 --- a/src/items/time.rs +++ b/src/items/time.rs @@ -42,7 +42,7 @@ use std::fmt::Display; use chrono::FixedOffset; use winnow::{ ascii::digit1, - combinator::{alt, opt, peek, preceded}, + combinator::{alt, eof, opt, peek, preceded, terminated}, error::{ContextError, ErrMode, StrContext, StrContextValue}, seq, stream::AsChar, @@ -182,12 +182,15 @@ fn am_pm_time(input: &mut &str) -> ModalResult