File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -230,8 +230,8 @@ export function search(query) {
230
230
start = indexContent < 11 ? 0 : indexContent - 10 ;
231
231
end = start === 0 ? 100 : indexContent + keyword . length + 90 ;
232
232
233
- if ( postContent && end > postContent . length ) {
234
- end = postContent . length ;
233
+ if ( handlePostContent && end > handlePostContent . length ) {
234
+ end = handlePostContent . length ;
235
235
}
236
236
237
237
const matchContent =
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ console.log('Hello World');
254
254
await searchFieldElm . fill ( 'searchHere' ) ;
255
255
// there is a newline after searchHere and the markdown part ```js ``` it should be removed
256
256
expect ( await resultsHeadingElm . textContent ( ) ) . toContain (
257
- "...searchHere\nconsole.log('Hello Worl ..." ,
257
+ "...searchHere\nconsole.log('Hello World'); ..." ,
258
258
) ;
259
259
} ) ;
260
260
You can’t perform that action at this time.
0 commit comments