diff --git a/src/plugins/search/search.js b/src/plugins/search/search.js
index 8c253587b..093904b0e 100644
--- a/src/plugins/search/search.js
+++ b/src/plugins/search/search.js
@@ -170,7 +170,10 @@ export function search(query) {
'...' +
escapeHtml(postContent)
.substring(start, end)
- .replace(regEx, `${keyword}`) +
+ .replace(
+ regEx,
+ word => `${word}`
+ ) +
'...';
resultStr += matchContent;