This commit is contained in:
Tshepang Mbambo 2022-07-31 23:29:36 +02:00
parent 2a5b586c24
commit 483a0a5ab7
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ impl fmt::Display for Date {
fn make_date_regex() -> Regex {
Regex::new(
r"(?x)
(?:<!--\s+date-check:\s+(\D+)\s+(\d{4})\s+-->)|
(?:<!--\s+date-check:\s+(\D+)\s+(\d{4})\s+-->)
|
(?:<!--\s+date-check\s+-->\s+(\D+)\s+(\d{4})\b)
",
)