正则伤到友军了-_-!!!

This commit is contained in:
结发受长生 2019-04-18 23:10:00 +08:00
parent 29db0a7e4a
commit 21e62c933c

View File

@ -246,7 +246,7 @@ hexo.extend.filter.register('before_post_render', function(data){
// data.content 是处理过代码块语法高亮的内容
if(hexo.config.picture_cdn) {
data.content = data.content.replace(/\]\s*\((?=(?!http).*?\))/gi,
`](${hexo.config.picture_cdn}`)
']'+`(${hexo.config.picture_cdn}`)
}
return data;
});