Skip to content

Commit 4ecc5ca

Browse files
authored
fx mistak
1 parent 0291552 commit 4ecc5ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/sidebarApps/searchInFiles/worker.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ function getSurrounding(content, word, start, end) {
203203
if (left > 0 && !/[\r\n]/.test(content[left - 1])) line = `...${line}`;
204204
if (right < content.length && !/[\r\n]/.test(content[right])) line += "...";
205205
return [line, word.slice(0, max)].map((text) =>
206-
text.replaceAll('\r\n', ' ⏎ ').replaceAll('\n', ' ⏎ ').replaceAll('\r', ''),
206+
text.replaceAll('\r\n', ' ⏎ ').replaceAll('\n', ' ⏎ ').replaceAll('\r', ' ⏎ '),
207207
);
208208
}
209209

0 commit comments

Comments
 (0)