domain only urls don't have slashes, just hashes
This commit is contained in:
parent
7d9e96a674
commit
8334161c35
|
@ -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
2
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)
|
||||
|
|
Loading…
Reference in New Issue