host extractor more reliable without trailing )

This commit is contained in:
Ted Unangst 2020-07-29 02:38:22 -04:00
parent d11ce38a6f
commit 2c65dccc22
1 changed files with 1 additions and 1 deletions

2
fun.go
View File

@ -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)