正则伤到友军了-_-!!!
This commit is contained in:
parent
29db0a7e4a
commit
21e62c933c
@ -246,7 +246,7 @@ hexo.extend.filter.register('before_post_render', function(data){
|
|||||||
// data.content 是处理过代码块语法高亮的内容
|
// data.content 是处理过代码块语法高亮的内容
|
||||||
if(hexo.config.picture_cdn) {
|
if(hexo.config.picture_cdn) {
|
||||||
data.content = data.content.replace(/\]\s*\((?=(?!http).*?\))/gi,
|
data.content = data.content.replace(/\]\s*\((?=(?!http).*?\))/gi,
|
||||||
`](${hexo.config.picture_cdn}`)
|
']'+`(${hexo.config.picture_cdn}`)
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user