File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ export function search(query) {
169
169
keywords . forEach ( keyword => {
170
170
// From https://github.com/sindresorhus/escape-string-regexp
171
171
const regEx = new RegExp (
172
- escapeHtml ( ignoreDiacriticalMarks ( keyword ) ) . replace (
172
+ ignoreDiacriticalMarks ( keyword ) . replace (
173
173
/ [ | \\ { } ( ) [ \] ^ $ + * ? . ] / g,
174
174
'\\$&'
175
175
) ,
@@ -178,10 +178,10 @@ export function search(query) {
178
178
let indexTitle = - 1 ;
179
179
let indexContent = - 1 ;
180
180
handlePostTitle = postTitle
181
- ? escapeHtml ( ignoreDiacriticalMarks ( postTitle ) )
181
+ ? ignoreDiacriticalMarks ( postTitle )
182
182
: postTitle ;
183
183
handlePostContent = postContent
184
- ? escapeHtml ( ignoreDiacriticalMarks ( postContent ) )
184
+ ? ignoreDiacriticalMarks ( postContent )
185
185
: postContent ;
186
186
187
187
indexTitle = postTitle ? handlePostTitle . search ( regEx ) : - 1 ;
You can’t perform that action at this time.
0 commit comments