all repos — honk @ 2263ed15b1ec3c723e83b3867c2ff1d8328e45a2

my fork of honk

host extractor more reliable without trailing )
Ted Unangst tedu@tedunangst.com
Wed, 29 Jul 2020 02:38:22 -0400
commit

2263ed15b1ec3c723e83b3867c2ff1d8328e45a2

parent

3be4faf1e5fe58610d74cb7930dab4e915c410b7

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M fun.gofun.go

@@ -505,7 +505,7 @@ strings.ToLower(h[1:]), h)

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