From 2c65dccc22114a5529c7712c01dcb25df66eebf5 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 29 Jul 2020 02:38:22 -0400 Subject: [PATCH] host extractor more reliable without trailing ) --- fun.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)