Skip to content

Commit a20d360

Browse files
committed
negative lookbehind to exclude backslashes
1 parent 722f5e4 commit a20d360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/support/doc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const findHoverMatchesInDoc = (
6969
): ProviderResult<Hover> => {
7070
const linkRange = doc.getWordRangeAtPosition(
7171
pos,
72-
new RegExp(/(['"])(.*?)\1/),
72+
new RegExp(/(?<!\\)(['"])(.*?)(?<!\\)\1/),
7373
);
7474

7575
if (!linkRange) {

0 commit comments

Comments
 (0)