mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-10-10 21:04:10 +02:00
fix blank case on NormalizeURL().
This commit is contained in:
@@ -3,6 +3,7 @@ package nostr
|
||||
import "fmt"
|
||||
|
||||
func ExampleNormalizeURL() {
|
||||
fmt.Println(NormalizeURL(""))
|
||||
fmt.Println(NormalizeURL("wss://x.com/y"))
|
||||
fmt.Println(NormalizeURL("wss://x.com/y/"))
|
||||
fmt.Println(NormalizeURL("http://x.com/y"))
|
||||
@@ -16,6 +17,7 @@ func ExampleNormalizeURL() {
|
||||
fmt.Println(NormalizeURL("x.com/?x=23"))
|
||||
|
||||
// Output:
|
||||
//
|
||||
// wss://x.com/y
|
||||
// wss://x.com/y
|
||||
// ws://x.com/y
|
||||
|
Reference in New Issue
Block a user