tame greedy regex

(see title tag in http://camlistore.org/docs/contributing)

Change-Id: I935aef070f527fbdd18d5de9b03d0fb10db157d2
This commit is contained in:
Robert Hencke 2011-07-06 19:01:35 -05:00
parent 6ec3b82a51
commit 2bff2d7741
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ import (
const defaultAddr = ":31798" // default webserver address
var h1TitlePattern = regexp.MustCompile(`<h1>(.+)</h1>`)
var h1TitlePattern = regexp.MustCompile(`<h1>([^<]+)</h1>`)
var (
httpAddr = flag.String("http", defaultAddr, "HTTP service address (e.g., '"+defaultAddr+"')")