Remove negative lookbehind in regexp

Fixes #145655
This commit is contained in:
Matt Bierner
2022-03-22 14:34:15 -07:00
parent 23f9da2209
commit d2db6fb2d0
2 changed files with 9 additions and 10 deletions

View File

@@ -159,16 +159,16 @@ suite('markdown.DocumentLinkProvider', () => {
assert.strictEqual(links.length, 1);
});
test('Should find links for referenes with only one [] (#141285)', async () => {
test('Should find links for referees with only one [] (#141285)', async () => {
let links = await getLinksForFile([
'[Works]',
'[Works]: https://microsoft.com',
'[ref]',
'[ref]: https://microsoft.com',
].join('\n'));
assert.strictEqual(links.length, 2);
links = await getLinksForFile([
'[Does Not Work]',
'[Works]: https://microsoft.com',
'[def]: https://microsoft.com',
].join('\n'));
assert.strictEqual(links.length, 1);
});