Fixed the detection of URL links in the description (# 4143)

Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
This commit is contained in:
Alexey Terentyev 2018-06-06 03:52:48 +03:00
parent fa3ceb610d
commit a1f01b0d71
No known key found for this signature in database
GPG Key ID: 60D6C550AEEBB467

View File

@ -783,7 +783,7 @@ func (repo *Repository) NextIssueIndex() int64 {
}
var (
descPattern = regexp.MustCompile(`https?://\S+`)
descPattern = regexp.MustCompile(`https?://[a-zA-Z0-9-_@:;%.,+~#?&/=|!$]+`)
)
// DescriptionHTML does special handles to description and return HTML string.