mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-08-23 04:02:03 +02:00
nip54: identifier can contain number.
This commit is contained in:
@@ -15,7 +15,7 @@ func NormalizeIdentifier(name string) string {
|
||||
|
||||
b := make([]rune, len(runes))
|
||||
for i, letter := range runes {
|
||||
if unicode.IsLetter(letter) {
|
||||
if unicode.IsLetter(letter) || unicode.IsNumber(letter) {
|
||||
b[i] = letter
|
||||
} else {
|
||||
b[i] = '-'
|
||||
|
Reference in New Issue
Block a user