diff --git a/src/worker.js b/src/worker.js index d7a4537..5058d05 100644 --- a/src/worker.js +++ b/src/worker.js @@ -136,6 +136,7 @@ async function handleLol(body, env) { // weblog has some quirks with its yaml interpretation frontmatterString = frontmatterString .replace(/{\n/, '').replace(/}\n/, '').replace(/^\s\s/gm, '').replace(/,$/gm, '') + .replace(/\ntags: \[\]$/m, '') .replace(/^tags: \[ (.*) \]$/m, "tags: $1") .replace(/^title: "(.*)"$/m, "title: $1")