Fixed the detection of URL links in the description (# 4143)
Signed-off-by: Alexey Terentyev <axifnx@gmail.com>
This commit is contained in:
parent
fa3ceb610d
commit
a1f01b0d71
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user