stevedonovan / chrono-english

Converting informal English dates (like `date` command) to chrono DateTime in Rust
MIT License
57 stars 14 forks source link

`parse_date_string` accepts invalid time clue #13

Open PicoJr opened 4 years ago

PicoJr commented 4 years ago

parse_date_string accepts invalid time clue:

example:

parse_date_string("10am hello world", Local::now(), Dialect::Uk).is_ok(); // evaluates to true