Skip to content

Commit 6eca4d1

Browse files
committed
Fix search integration test on windows
1 parent 8cccc98 commit 6eca4d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/services/search/node/ripgrepTextSearchEngine.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export class RipgrepParser extends EventEmitter {
259259
const text = bytesOrTextToString(data.lines);
260260
const startLine = data.line_number;
261261
return text
262-
.replace(/\n$/, '')
262+
.replace(/\r?\n$/, '')
263263
.split('\n')
264264
.map((line, i) => {
265265
return {

0 commit comments

Comments
 (0)