aboutsummaryrefslogtreecommitdiffstats
path: root/modules/references/references_test.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-01-31 17:08:05 +0800
committerGitHub <noreply@github.com>2023-01-31 10:08:05 +0100
commit36dc11869d0401b796a7a3f74627fec842a4a89a (patch)
tree8e01a953049ee155eae96bff8c17533f8815e520 /modules/references/references_test.go
parentf47ea60c075ddc09d39bc7817efc7c4d870dcd19 (diff)
downloadgitea-36dc11869d0401b796a7a3f74627fec842a4a89a.tar.gz
gitea-36dc11869d0401b796a7a3f74627fec842a4a89a.zip
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>
Diffstat (limited to 'modules/references/references_test.go')
-rw-r--r--modules/references/references_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/references/references_test.go b/modules/references/references_test.go
index 1159e14b37..75e002c99a 100644
--- a/modules/references/references_test.go
+++ b/modules/references/references_test.go
@@ -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},
},
},
}