mirror of
https://github.com/nathonius/obsidian-github-link.git
synced 2026-07-22 09:20:25 +00:00
🐛 fix: #139 Adjust url regex to exclude URLs with display text
Closes: #139
This commit is contained in:
parent
43728122a6
commit
0fb4e4dbd0
1 changed files with 1 additions and 1 deletions
|
|
@ -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: /(?<!\[.*?\]\()https:\/\/github\.com\/[^\s,.)]+/g,
|
||||
decorate: (add, from, to, match, _view) => {
|
||||
add(
|
||||
from,
|
||||
|
|
|
|||
Loading…
Reference in a new issue