From 4a88c456020d66f79768e8e1080439faaf4ceefe Mon Sep 17 00:00:00 2001 From: ehmicky Date: Mon, 4 May 2020 17:07:18 +0200 Subject: [PATCH] Fix `content` `undefined` error --- parser/meta.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser/meta.js b/parser/meta.js index 2fae9cd..8bbfc74 100644 --- a/parser/meta.js +++ b/parser/meta.js @@ -25,7 +25,7 @@ function meta() { if (is(node, 'head')) { visit(node, (child) => { if (is(child, 'meta')) { - const { name, property, content } = child.properties + const { name, property, content = '' } = child.properties if (name === 'description') { file.data.description = content } else if (name === 'keywords') {