Fixes quotes in progress field

This commit is contained in:
Óscar M. Lage 2024-10-28 12:58:16 +01:00
parent 3ac796e743
commit 9ba5647ddc

View File

@ -106,7 +106,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*)$`,