From 9ba5647ddc2339494b0b0421828de908ef0600eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=CC=81scar=20M=2E=20Lage?= Date: Mon, 28 Oct 2024 12:58:16 +0100 Subject: [PATCH] Fixes quotes in progress field --- utils/markdown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/markdown.go b/utils/markdown.go index 411afd9..7d3a40f 100644 --- a/utils/markdown.go +++ b/utils/markdown.go @@ -106,7 +106,7 @@ func SaveUpdatedMarkdown(filepath string, frontmatter FrontMatter, content strin fileContent := string(fileBytes) fieldPatterns := map[string]string{ - "progress": `(?m)^progress: (.*)%$`, + "progress": `(?m)^progress: "(.*)%"$`, "episode": `(?m)^episode: "(.*)"$`, "date": `(?m)^date: (.*)$`, "rate": `(?m)^rate: (\d+\.?\d*)$`,