Skip to content

Commit

Permalink
detect more tag fussily
Browse files Browse the repository at this point in the history
  • Loading branch information
chekun committed Mar 16, 2020
1 parent 46e3a69 commit 1d46a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hexo-excerpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = function(db) {
return db.posts.map(post => {

//honour the <!-- more --> !!!
if (/<!-- more -->/.test(post.content)) {
if (/<!--\s*more\s*-->/.test(post.content)) {
return {
path: post.path,
data: post,
Expand Down

0 comments on commit 1d46a39

Please sign in to comment.