host extractor more reliable without trailing )

master
Ted Unangst 4 years ago
parent d11ce38a6f
commit 2c65dccc22

@ -505,7 +505,7 @@ func ontoreplacer(h string) string {
}
var re_unurl = regexp.MustCompile("https://([^/]+).*/([^/]+)")
var re_urlhost = regexp.MustCompile("https://([^/ #]+)")
var re_urlhost = regexp.MustCompile("https://([^/ #)]+)")
func originate(u string) string {
m := re_urlhost.FindStringSubmatch(u)

Loading…
Cancel
Save