mirror of
https://github.com/nathonius/obsidian-github-link.git
synced 2026-07-22 09:20:25 +00:00
Fix lint errors
Replaces unintentional character range and reorders by ASCII code.
This commit is contained in:
parent
4cbdff68d9
commit
1902f4cf76
1 changed files with 9 additions and 8 deletions
|
|
@ -36,15 +36,16 @@ class InlineTagWidget extends WidgetType {
|
|||
}
|
||||
}
|
||||
|
||||
// (?<! # skip if
|
||||
// ]\( # Markdown link
|
||||
// (?<! # 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;
|
||||
// https:\/\/github\.com\/ # literal github.com/
|
||||
// [ # valid characters:
|
||||
// \w # alphanumeric or _
|
||||
// #-/! # all lower ASCII except "
|
||||
// :;=?@[\]~ # misc. in ASCII order
|
||||
// ]+ # 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