Skip to content

Commit bef5224

Browse files
committed
Fix replace throwing
1 parent 2db9790 commit bef5224

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/terminal/common/terminalClipboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export async function shouldPasteTerminalText(accessor: ServicesAccessor, text:
9999
}
100100

101101
if (result.singleLine) {
102-
return { modifiedText: text.replaceAll(/\r?\n/, '') };
102+
return { modifiedText: text.replace(/\r?\n/g, '') };
103103
}
104104

105105
return result.confirmed;

0 commit comments

Comments
 (0)