Gitea links regexp fix.

This commit is contained in:
Stanislav Nikitin 2017-09-13 12:33:47 +05:00
parent 4b01f977d5
commit af769b3039
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ func (gp GiteaParser) cutHeaderLinks(data string) [][]string {
var links [][]string
c.Log.Debugln("Passed:", data)
r := regexp.MustCompile("<(http[?s]://[a-zA-Z1-9./-]+)|([a-zA-Z1-9_-]+)>")
r := regexp.MustCompile("<(http[?s]://[a-zA-Z0-9./-]+)|([a-zA-Z0-9_-]+)>")
found := r.FindAllStringSubmatch(data, -1)