From 8334161c35171edd884e166c07ccbd78883e6ec2 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 7 Jul 2020 16:47:10 -0400 Subject: [PATCH] domain only urls don't have slashes, just hashes --- docs/changelog.txt | 4 ++++ fun.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index 5246038..2d04933 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -1,5 +1,9 @@ changelog +=== next + ++ Fix pubkey issue with domain only keys. + === 0.9.2 Malleable Maltote + Fix compilation on mac. diff --git a/fun.go b/fun.go index 7b88c18..ea09c5e 100644 --- a/fun.go +++ b/fun.go @@ -509,7 +509,7 @@ func ontologize(s 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)