From 43000b45f26cb3ee8bc36f3a716a6c11bc8c819c Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Sun, 3 May 2015 09:58:43 -0700 Subject: [PATCH] get title fix --- route_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route_handlers.go b/route_handlers.go index 737970b..59ddc92 100644 --- a/route_handlers.go +++ b/route_handlers.go @@ -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] *>(.*)") title := re.FindStringSubmatch(string(body)) fmt.Println(title) }