E.g. for the following link: ``` https://github.com/sindresorhus/refined-github/pull/3205/commits/1da152b3f8c51dd72d8ae6ad9cc96e0c2d8716f5#diff-932095cc3c0dff00495b4c392d78f0afR60 ``` … it should rather suggest the following: ```diff - [https://github.com/sindresorhus/refined-github/pull/3205/commits/1da152b3f8c51dd72d8ae6ad9cc96e0c2d8716f5 ](https://github.com/sindresorhus/refined-github/pull/3205/commits/1da152b3f8c51dd72d8ae6ad9cc96e0c2d8716f5)#diff-932095cc3c0dff00495b4c392d78f0afR60 + [https://github.com/sindresorhus/refined-github/pull/3205/commits/1da152b3f8c51dd72d8ae6ad9cc96e0c2d8716f5#diff-932095cc3c0dff00495b4c392d78f0afR60](https://github.com/sindresorhus/refined-github/pull/3205/commits/1da152b3f8c51dd72d8ae6ad9cc96e0c2d8716f5#diff-932095cc3c0dff00495b4c392d78f0afR60) ``` In short: ```diff - [pr_url/commits/commit_ref ](pr_url/commits/commit_ref)#hash + [pr_url/commits/commit_ref#hash](pr_url/commits/commit_ref#hash) ``` Also, it adds an unnecessary space after the commit ref.
Activity
fregante commentedon Jun 12, 2020
I'll do it unless you're already working on it
FloEdelmann commentedon Jun 12, 2020
I'm not, please go for it :)
Undo usage of `url-regex` to fix #3222
Revert "Undo usage of `url-regex` to fix #3222"