From 2bff2d7741aa464601ed8dddac7fbe3f24194fbf Mon Sep 17 00:00:00 2001 From: Robert Hencke Date: Wed, 6 Jul 2011 19:01:35 -0500 Subject: [PATCH] tame greedy regex (see title tag in http://camlistore.org/docs/contributing) Change-Id: I935aef070f527fbdd18d5de9b03d0fb10db157d2 --- website/camweb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/camweb.go b/website/camweb.go index baae8f539..dd4eea48e 100644 --- a/website/camweb.go +++ b/website/camweb.go @@ -36,7 +36,7 @@ import ( const defaultAddr = ":31798" // default webserver address -var h1TitlePattern = regexp.MustCompile(`

(.+)

`) +var h1TitlePattern = regexp.MustCompile(`

([^<]+)

`) var ( httpAddr = flag.String("http", defaultAddr, "HTTP service address (e.g., '"+defaultAddr+"')")