domain only urls don't have slashes, just hashes

This commit is contained in:
Ted Unangst 2020-07-07 16:47:10 -04:00
parent 7d9e96a674
commit 8334161c35
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
changelog
=== next
+ Fix pubkey issue with domain only keys.
=== 0.9.2 Malleable Maltote
+ Fix compilation on mac.

2
fun.go
View File

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