accept review suggestion

Co-authored-by: Noah Lev <camelidcamel@gmail.com>
This commit is contained in:
Tshepang Mbambo 2022-07-18 22:24:09 +02:00
parent 9eef34fedd
commit c9fcae3d6b
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ impl fmt::Display for Date {
} }
fn make_date_regex() -> Regex { fn make_date_regex() -> Regex {
Regex::new(r"[aA]s of (\w+) (\d{4})").unwrap() Regex::new(r"[aA]s\s+of\s+(\w+)\s+(\d{4})").unwrap()
} }
fn collect_dates_from_file(date_regex: &Regex, text: &str) -> Vec<(usize, Date)> { fn collect_dates_from_file(date_regex: &Regex, text: &str) -> Vec<(usize, Date)> {