diff --git a/fun.go b/fun.go index 7d8b0ea..30c8111 100644 --- a/fun.go +++ b/fun.go @@ -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)