My https://github.com/platers/obsidian-linter is configured to wrap bare links like <https://github.com/platers/obsidian-linter>. The current regex consumes the closing angle bracket and appends %3E:
|
export const matchRegexp = /(?<!]\()https:\/\/github\.com\/[^\s]+(?<!['".?,:;]+)/g; |
I think an improvement would be to consume valid characters instead of terminating on invalid ones:
/(?<!]\()https:\/\/github\.com\/[\w#-/!:;=?@[\]]+/g
My https://github.com/platers/obsidian-linter is configured to wrap bare links like
<https://github.com/platers/obsidian-linter>. The current regex consumes the closing angle bracket and appends%3E:obsidian-github-link/src/inline/view-plugin.ts
Line 39 in 4366eeb
I think an improvement would be to consume valid characters instead of terminating on invalid ones: