Skip to content

prevent-link-loss - Match L in compare link hash#9694

Merged
fregante merged 1 commit into
refined-github:mainfrom
yume-chan:fix/prevent-link-loss/match-l
Jun 4, 2026
Merged

prevent-link-loss - Match L in compare link hash#9694
fregante merged 1 commit into
refined-github:mainfrom
yume-chan:fix/prevent-link-loss/match-l

Conversation

@yume-chan

Copy link
Copy Markdown
Contributor

On diff pages, clicking left side line numbers generates links end with L123. Currently, when prevent-link-loss converts the link, the L123 part is left out of the link.

For example

https://github.com/refined-github/refined-github/compare/26.5.24...26.6.1#diff-31bc308e7c7d86220613f3cbc05182706b71911a5d654362c32ea919622764d2L14-L15

26.5.24...26.6.1#diff-31bc308e7c7d86220613f3cbc05182706b71911a5d654362c32ea919622764d2L14-L15

Converts to

[`26.5.24...26.6.1`#diff-31bc308e7c](https://github.com/refined-github/refined-github/compare/26.5.24...26.6.1#diff-31bc308e7c7d86220613f3cbc05182706b71911a5d654362c32ea919622764d2)L14-L15

26.5.24...26.6.1#diff-31bc308e7cL14-L15

Expected

[`26.5.24...26.6.1`#diff-31bc308e7c](https://github.com/refined-github/refined-github/compare/26.5.24...26.6.1#diff-31bc308e7c7d86220613f3cbc05182706b71911a5d654362c32ea919622764d2L14-L15)

26.5.24...26.6.1#diff-31bc308e7c

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

謝謝鴨

@fregante fregante merged commit 9952f67 into refined-github:main Jun 4, 2026
14 checks passed
@fregante fregante added the bug label Jun 4, 2026
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

To maintainers: Please add labels to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants