Fix replace throwing

This commit is contained in:
Daniel Imms 2023-12-19 10:00:02 -08:00
parent 2db9790a9c
commit bef5224016
No known key found for this signature in database
GPG key ID: E5CF412B63651C69

View file

@ -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;