diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2021-10-23 21:38:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-23 21:38:12 +0800 |
commit | 6c49517cbd9d353d2d56d899632f301919818a03 (patch) | |
tree | aaca5a05c9867c30282e628e08abac3a209985e9 /modules/markup/html.go | |
parent | 2a9aefdabb24442f18d2ab2eac672a03928de9a4 (diff) | |
download | gitea-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.go | 2 |
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 } |