Skip to content

Commit

Permalink
Merge pull request #10 from sw-yx/fix/content-undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
swyxio authored May 4, 2020
2 parents 3e05726 + 4a88c45 commit 689e363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 689e363

Please sign in to comment.