From 0fb4e4dbd072ff5a2d752b4af8c92e400c7f8524 Mon Sep 17 00:00:00 2001 From: Nathan Smith Date: Fri, 16 Aug 2024 21:27:09 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20#139=20Adjust=20url=20reg?= =?UTF-8?q?ex=20to=20exclude=20URLs=20with=20display=20text?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: #139 --- src/inline/view-plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inline/view-plugin.ts b/src/inline/view-plugin.ts index e8ce928..35003d1 100644 --- a/src/inline/view-plugin.ts +++ b/src/inline/view-plugin.ts @@ -44,7 +44,7 @@ export function createInlineViewPlugin(_plugin: GithubLinkPlugin) { public inlineTags: DecorationSet = Decoration.none; private readonly matcher = new MatchDecorator({ - regexp: /(https:\/\/)?github\.com\S+/g, + regexp: /(? { add( from,