From e810c7d9a646c208b2edbc1fb10a30e92f1d8598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=CC=81scar=20M=2E=20Lage?= Date: Thu, 24 Oct 2024 17:15:59 +0200 Subject: [PATCH] Fix a bug with the progress field and the quotes --- utils/markdown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/markdown.go b/utils/markdown.go index b9c1cc5..d557bad 100644 --- a/utils/markdown.go +++ b/utils/markdown.go @@ -97,7 +97,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*)$`,