Skip to content

Commit

Permalink
time is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mumbleskates committed Jul 13, 2024
1 parent 8c695da commit 08ef8e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuzz/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static DATE_RE: LazyLock<Regex> = LazyLock::new(|| {
let offset = r"[+-]\d\d(:?\d\d)?";
let offset_or_zulu = format!("({offset}|[Zz])");

Regex::new(&format!("^{date}[ Tt]{time}( ?{offset_or_zulu})?$")).unwrap()
Regex::new(&format!("^{date}([ Tt]{time}( ?{offset_or_zulu})?)?$")).unwrap()
});

pub fn test_parse_date(data: &[u8]) {
Expand Down

0 comments on commit 08ef8e4

Please sign in to comment.