Skip to content

Commit c166748

Browse files
authored
Update SearchMessages.user.js
1 parent ddb5fb5 commit c166748

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Duck.ai/SearchMessages/SearchMessages.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,14 @@ function createResultElem(result) {
192192
}
193193

194194
const mark = document.createElement('mark');
195-
mark.textContent = value.slice(start, end+1);
195+
mark.textContent = value.slice(start, end + 1);
196196
matchTextElem.appendChild(mark);
197197

198198
lastIndex = end + 1;
199199
}
200200

201201
if(lastIndex < value.length) {
202-
let afterText = value.slice(lastIndex + 1);
202+
let afterText = value.slice(lastIndex);
203203
matchTextElem.appendChild(document.createTextNode(afterText));
204204
}
205205

0 commit comments

Comments
 (0)