Fixes date regexp for the update

This commit is contained in:
Óscar M. Lage 2024-10-25 09:46:19 +02:00
parent b8859acc28
commit e88fe268f1

View File

@ -99,7 +99,7 @@ func SaveUpdatedMarkdown(filepath string, frontmatter FrontMatter, content strin
fieldPatterns := map[string]string{
"progress": `(?m)^progress: (.*)%$`,
"episode": `(?m)^episode: "(.*)"$`,
"date": `(?m)^date: "(.*)"$`,
"date": `(?m)^date: (.*)$`,
"rate": `(?m)^rate: (\d+\.?\d*)$`,
}