mirror of
https://github.com/Microsoft/vscode
synced 2024-11-05 18:29:38 +00:00
Fix replace throwing
This commit is contained in:
parent
2db9790a9c
commit
bef5224016
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ export async function shouldPasteTerminalText(accessor: ServicesAccessor, text:
|
|||
}
|
||||
|
||||
if (result.singleLine) {
|
||||
return { modifiedText: text.replaceAll(/\r?\n/, '') };
|
||||
return { modifiedText: text.replace(/\r?\n/g, '') };
|
||||
}
|
||||
|
||||
return result.confirmed;
|
||||
|
|
Loading…
Reference in a new issue