mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 00:59:03 +01:00
Links with no authority are considered invalid (#189323)
* edit validateLink
This commit is contained in:
@@ -94,6 +94,11 @@ suite('createEditAddingLinksForUriList', () => {
|
||||
const isLink = validateLink('https://www.microsoft.com/ \r\nhttps://www.microsoft.com/\r\nhttps://www.microsoft.com/\r\n hello \r\nhttps://www.microsoft.com/').isValid;
|
||||
assert.strictEqual(isLink, false);
|
||||
});
|
||||
|
||||
test('Markdown pasting should not occur for just a valid uri scheme', () => {
|
||||
const isLink = validateLink('https://').isValid;
|
||||
assert.strictEqual(isLink, false);
|
||||
});
|
||||
});
|
||||
|
||||
suite('appendToLinkSnippet', () => {
|
||||
|
||||
Reference in New Issue
Block a user