mirror of https://github.com/perkeep/perkeep.git
tame greedy regex
(see title tag in http://camlistore.org/docs/contributing) Change-Id: I935aef070f527fbdd18d5de9b03d0fb10db157d2
This commit is contained in:
parent
6ec3b82a51
commit
2bff2d7741
|
@ -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+"')")
|
||||
|
|
Loading…
Reference in New Issue