From 6c49517cbd9d353d2d56d899632f301919818a03 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sat, 23 Oct 2021 21:38:12 +0800 Subject: Fix issue markdown bugs (#17411) * Bug fix: render Markdown http://AppURL/org/repo/issues/4?a=1&b=2#comment-123 test to HTML correctly, close #17394 * Bug fix: fix the positions of checkboxes in rendered HTML, close #17395 --- modules/markup/html.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/markup/html.go') diff --git a/modules/markup/html.go b/modules/markup/html.go index d5ae237b5b..746830720d 100644 --- a/modules/markup/html.go +++ b/modules/markup/html.go @@ -94,7 +94,7 @@ var issueFullPatternOnce sync.Once func getIssueFullPattern() *regexp.Regexp { issueFullPatternOnce.Do(func() { issueFullPattern = regexp.MustCompile(regexp.QuoteMeta(setting.AppURL) + - `\w+/\w+/(?:issues|pulls)/((?:\w{1,10}-)?[1-9][0-9]*)([\?|#]\S+.(\S+)?)?\b`) + `\w+/\w+/(?:issues|pulls)/((?:\w{1,10}-)?[1-9][0-9]*)([\?|#](\S+)?)?\b`) }) return issueFullPattern } -- cgit v1.2.3