cleanup nostr bech32 entity parsing

Closes: #911
This commit is contained in:
Bartholomew Joyce
2023-04-12 21:47:35 +02:00
committed by William Casarin
parent ebba9d3004
commit 668b0a94df
2 changed files with 5 additions and 6 deletions

View File

@@ -222,7 +222,7 @@ int parse_nostr_bech32(struct cursor *cur, struct nostr_bech32 *obj) {
start = cur->p;
if (!consume_until_non_bech32_character(cur, 1)) {
if (!consume_until_non_alphanumeric(cur, 1)) {
cur->p = start;
return 0;
}