Skip to content

Commit

Permalink
Split uri-lists on \r\n for markdown drop (#175552)
Browse files Browse the repository at this point in the history
Fixes #175547
  • Loading branch information
mjbvz committed Feb 27, 2023
1 parent be0f82c commit 7570fad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function tryGetUriListSnippet(document: vscode.TextDocument, dataTr
}

const uris: vscode.Uri[] = [];
for (const resource of urlList.split('\n')) {
for (const resource of urlList.split(/\r?\n/g)) {
try {
uris.push(vscode.Uri.parse(resource));
} catch {
Expand Down

0 comments on commit 7570fad

Please sign in to comment.