mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:28:52 +01:00
Also ignore star checkboxes (#151029)
Fixes #150672 This makes our md link detection also ignore checkboxes like `* [x]` instead of just `- [x]`
This commit is contained in:
@@ -357,7 +357,7 @@ export class MdLinkProvider implements vscode.DocumentLinkProvider {
|
||||
linkStart = document.positionAt(offset);
|
||||
const line = document.lineAt(linkStart.line);
|
||||
// See if link looks like a checkbox
|
||||
const checkboxMatch = line.text.match(/^\s*\-\s*\[x\]/i);
|
||||
const checkboxMatch = line.text.match(/^\s*[\-\*]\s*\[x\]/i);
|
||||
if (checkboxMatch && linkStart.character <= checkboxMatch[0].length) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user