mirror of
https://github.com/nathonius/obsidian-github-link.git
synced 2026-07-22 09:20:25 +00:00
Fix #171
This commit is contained in:
parent
4366eebfb6
commit
4cbdff68d9
1 changed files with 9 additions and 1 deletions
|
|
@ -36,7 +36,15 @@ class InlineTagWidget extends WidgetType {
|
|||
}
|
||||
}
|
||||
|
||||
export const matchRegexp = /(?<!]\()https:\/\/github\.com\/[^\s]+(?<!['".?,:;]+)/g;
|
||||
// (?<! # skip if
|
||||
// ]\( # Markdown link
|
||||
// )
|
||||
// https:\/\/github\.com\/ # literal github.com/
|
||||
// [ # valid characters:
|
||||
// \w # alphanumeric or underscore
|
||||
// $-.~!*'();:@&=+$,\/?%#[\] # valid special characters
|
||||
// ]+ # repeating and required
|
||||
export const matchRegexp = /(?<!]\()https:\/\/github\.com\/[\w$-.~!*'();:@&=+$,\/?%#[\]]+/g;
|
||||
|
||||
export function createInlineViewPlugin(_plugin: GithubLinkPlugin) {
|
||||
class InlineViewPluginValue implements PluginValue {
|
||||
|
|
|
|||
Loading…
Reference in a new issue