@@ -106,13 +106,13 @@ func TestRender_IssueIndexPattern2(t *testing.T) {
106
106
107
107
links := make ([]interface {}, len (indices ))
108
108
for i , index := range indices {
109
- links [i ] = numericIssueLink (util .URLJoin (setting .AppSubURL , path ), "issue" , index , marker )
109
+ links [i ] = numericIssueLink (util .URLJoin (setting .AppSubURL , path ), "ref- issue" , index , marker )
110
110
}
111
111
expectedNil := fmt .Sprintf (expectedFmt , links ... )
112
112
testRenderIssueIndexPattern (t , s , expectedNil , & postProcessCtx {metas : localMetas })
113
113
114
114
for i , index := range indices {
115
- links [i ] = numericIssueLink (prefix , "issue" , index , marker )
115
+ links [i ] = numericIssueLink (prefix , "ref- issue" , index , marker )
116
116
}
117
117
expectedNum := fmt .Sprintf (expectedFmt , links ... )
118
118
testRenderIssueIndexPattern (t , s , expectedNum , & postProcessCtx {metas : numericMetas })
@@ -178,7 +178,7 @@ func TestRender_IssueIndexPattern4(t *testing.T) {
178
178
test := func (s , expectedFmt string , names ... string ) {
179
179
links := make ([]interface {}, len (names ))
180
180
for i , name := range names {
181
- links [i ] = alphanumIssueLink ("https://someurl.com/someUser/someRepo/" , "issue" , name )
181
+ links [i ] = alphanumIssueLink ("https://someurl.com/someUser/someRepo/" , "ref- issue" , name )
182
182
}
183
183
expected := fmt .Sprintf (expectedFmt , links ... )
184
184
testRenderIssueIndexPattern (t , s , expected , & postProcessCtx {metas : alphanumericMetas })
@@ -217,7 +217,7 @@ func TestRender_AutoLink(t *testing.T) {
217
217
218
218
// render valid issue URLs
219
219
test (util .URLJoin (setting .AppSubURL , "issues" , "3333" ),
220
- numericIssueLink (util .URLJoin (setting .AppSubURL , "issues" ), "issue" , 3333 , "#" ))
220
+ numericIssueLink (util .URLJoin (setting .AppSubURL , "issues" ), "ref- issue" , 3333 , "#" ))
221
221
222
222
// render valid commit URLs
223
223
tmp := util .URLJoin (AppSubURL , "commit" , "d8a994ef243349f321568f9e36d5c3f444b99cae" )
@@ -248,11 +248,11 @@ func TestRender_FullIssueURLs(t *testing.T) {
248
248
test ("Here is a link https://git.osgeo.org/gogs/postgis/postgis/pulls/6" ,
249
249
"Here is a link https://git.osgeo.org/gogs/postgis/postgis/pulls/6" )
250
250
test ("Look here http://localhost:3000/person/repo/issues/4" ,
251
- `Look here <a href="http://localhost:3000/person/repo/issues/4" class="issue">person/repo#4</a>` )
251
+ `Look here <a href="http://localhost:3000/person/repo/issues/4" class="ref- issue">person/repo#4</a>` )
252
252
test ("http://localhost:3000/person/repo/issues/4#issuecomment-1234" ,
253
- `<a href="http://localhost:3000/person/repo/issues/4#issuecomment-1234" class="issue">person/repo#4</a>` )
253
+ `<a href="http://localhost:3000/person/repo/issues/4#issuecomment-1234" class="ref- issue">person/repo#4</a>` )
254
254
test ("http://localhost:3000/gogits/gogs/issues/4" ,
255
- `<a href="http://localhost:3000/gogits/gogs/issues/4" class="issue">#4</a>` )
255
+ `<a href="http://localhost:3000/gogits/gogs/issues/4" class="ref- issue">#4</a>` )
256
256
}
257
257
258
258
func TestRegExp_sha1CurrentPattern (t * testing.T ) {
0 commit comments