diff --git a/lib/hexo/post.js b/lib/hexo/post.js index 5ee75cf9fb..20ba888a29 100644 --- a/lib/hexo/post.js +++ b/lib/hexo/post.js @@ -11,7 +11,7 @@ const { copyDir, exists, listDir, mkdirs, readFile, rmdir, unlink, writeFile } = const yfm = require('hexo-front-matter'); const preservedKeys = ['title', 'slug', 'path', 'layout', 'date', 'content']; -const rEscapeContent = /]*)>([\s\S]*?)<\/escape>/g; +const rEscapeContent = /([\s\S]*?)<\/escape>/g; const rPlaceholder = /(?:<|<)!--hexoPostRenderEscape:(\d+)--(?:>|>)/g; class PostRenderCache {