Skip to content

Commit 25e09df

Browse files
authored
Merge pull request #195 from crawt/master
Filter picture
2 parents d469442 + a6b46a3 commit 25e09df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/plugins/search.js

+2
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ function search (keywords) {
8787
var postTitle = post.title && post.title.trim();
8888
var postContent = post.body && post.body.trim();
8989
var postUrl = post.slug || '';
90+
91+
postContent = postContent.replace(/!\[.*\]\((.+)\)/g,'');
9092

9193
if (postTitle && postContent) {
9294
keywords.forEach(function (keyword, i) {

0 commit comments

Comments
 (0)