mirror of
https://github.com/nathonius/obsidian-github-link.git
synced 2026-07-22 09:20:25 +00:00
Merge pull request #141 from nathonius/fix/139/display-text-links
🐛 fix: #139 Adjust url regex to exclude URLs with display text
This commit is contained in:
commit
8d495d990d
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