mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-20 14:00:04 +02:00
Use correct captured group range when parsing cross-reference (#22672)
Fixes #22666 (Replace #22668) Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: KN4CK3R <admin@oldschoolhack.me> Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
parent
f47ea60c07
commit
36dc11869d
2 changed files with 4 additions and 4 deletions
|
@ -352,7 +352,7 @@ func TestFindRenderizableCommitCrossReference(t *testing.T) {
|
|||
Owner: "go-gitea",
|
||||
Name: "gitea",
|
||||
CommitSha: "abcd1234",
|
||||
RefLocation: &RefSpan{Start: 4, End: 29},
|
||||
RefLocation: &RefSpan{Start: 5, End: 28},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue