mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-17 13:22:56 +01:00
nip54: identifier can contain number.
This commit is contained in:
parent
b8ec1343cc
commit
705d035281
@ -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] = '-'
|
||||
|
Loading…
x
Reference in New Issue
Block a user