File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ var issueFullPatternOnce sync.Once
94
94
func getIssueFullPattern () * regexp.Regexp {
95
95
issueFullPatternOnce .Do (func () {
96
96
issueFullPattern = regexp .MustCompile (regexp .QuoteMeta (setting .AppURL ) +
97
- `\w+/\w+/(?:issues|pulls)/((?:\w{1,10}-)?[1-9][0-9]*)([\?|#]\S+. (\S+)?)?\b` )
97
+ `\w+/\w+/(?:issues|pulls)/((?:\w{1,10}-)?[1-9][0-9]*)([\?|#](\S+)?)?\b` )
98
98
})
99
99
return issueFullPattern
100
100
}
Original file line number Diff line number Diff line change @@ -265,6 +265,10 @@ func TestRender_FullIssueURLs(t *testing.T) {
265
265
`<a href="http://localhost:3000/person/repo/issues/4#issuecomment-1234" class="ref-issue">person/repo#4</a>` )
266
266
test ("http://localhost:3000/gogits/gogs/issues/4" ,
267
267
`<a href="http://localhost:3000/gogits/gogs/issues/4" class="ref-issue">#4</a>` )
268
+ test ("http://localhost:3000/gogits/gogs/issues/4 test" ,
269
+ `<a href="http://localhost:3000/gogits/gogs/issues/4" class="ref-issue">#4</a> test` )
270
+ test ("http://localhost:3000/gogits/gogs/issues/4?a=1&b=2#comment-123 test" ,
271
+ `<a href="http://localhost:3000/gogits/gogs/issues/4?a=1&b=2#comment-123" class="ref-issue">#4</a> test` )
268
272
}
269
273
270
274
func TestRegExp_sha1CurrentPattern (t * testing.T ) {
Original file line number Diff line number Diff line change 158
158
159
159
.task-list-item {
160
160
list-style-type : none ;
161
+ position : relative ;
161
162
162
163
input [type= " checkbox" ] {
163
- margin : 0 6px .25em -1.6em ;
164
+ position : absolute ;
165
+ top : .25em ;
166
+ left : -1.6em ;
164
167
}
165
168
}
166
169
You can’t perform that action at this time.
0 commit comments