summaryrefslogtreecommitdiffstats
path: root/modules/markup/html.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2021-10-23 21:38:12 +0800
committerGitHub <noreply@github.com>2021-10-23 21:38:12 +0800
commit6c49517cbd9d353d2d56d899632f301919818a03 (patch)
treeaaca5a05c9867c30282e628e08abac3a209985e9 /modules/markup/html.go
parent2a9aefdabb24442f18d2ab2eac672a03928de9a4 (diff)
downloadgitea-6c49517cbd9d353d2d56d899632f301919818a03.tar.gz
gitea-6c49517cbd9d353d2d56d899632f301919818a03.zip
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
Diffstat (limited to 'modules/markup/html.go')
-rw-r--r--modules/markup/html.go2
1 files changed, 1 insertions, 1 deletions
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
}