Fix a bug with the progress field and the quotes

This commit is contained in:
Óscar M. Lage 2024-10-24 17:15:59 +02:00
parent d8a4bfd6f3
commit e810c7d9a6

View File

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