accept review suggestion
Co-authored-by: Noah Lev <camelidcamel@gmail.com>
This commit is contained in:
parent
9eef34fedd
commit
c9fcae3d6b
|
|
@ -37,7 +37,7 @@ impl fmt::Display for Date {
|
|||
}
|
||||
|
||||
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)> {
|
||||
|
|
|
|||
Loading…
Reference in New Issue