get title fix

This commit is contained in:
Dan Ballard 2015-05-03 09:58:43 -07:00
parent 5f5e69a298
commit 43000b45f2
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ func addFormHandler(w http.ResponseWriter, r *http.Request, user *user.User) {
if err != nil {
fmt.Println("Error reading link", url, ":", err)
} else {
re := regexp.MustCompile("< *[Tt][Ii][Tt][Ll][Ee] *>(.*)< *[Tt][Ii][Tt][Ll][Ee] *>")
re := regexp.MustCompile("< *[Tt][Ii][Tt][Ll][Ee] *>(.*)</ *[Tt][Ii][Tt][Ll][Ee] *>")
title := re.FindStringSubmatch(string(body))
fmt.Println(title)
}