1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 23:17:19 +00: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:
wxiaoguang
2023-01-31 17:08:05 +08:00
committed by GitHub
parent f47ea60c07
commit 36dc11869d
2 changed files with 4 additions and 4 deletions

View File

@@ -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},
},
},
}