host extractor more reliable without trailing )
This commit is contained in:
parent
d11ce38a6f
commit
2c65dccc22
2
fun.go
2
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)
|
||||
|
|
Loading…
Reference in New Issue