Skip to content

Commit

Permalink
style(meta_generator): closing slash is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Aug 11, 2019
1 parent f71cf9a commit 0bec42a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/filter/meta_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function hexoMetaGeneratorInject(data) {
if (!config.meta_generator ||
data.includes('<meta name="generator" content="Hexo')) return;

const hexoGeneratorTag = '<meta name="generator" content="Hexo %s" />'
const hexoGeneratorTag = '<meta name="generator" content="Hexo %s">'
.replace('%s', this.version);

return data.replace(/<\/head>/, hexoGeneratorTag.concat('</head>'));
Expand Down

0 comments on commit 0bec42a

Please sign in to comment.