damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit a469f2e1271f8468884b17341e241dfcf89f6f10
parent 2f8f18b846a577c0632af2ebf0a9a83d30bb09d9
Author: William Casarin <jb55@jb55.com>
Date:   Sun, 17 Dec 2023 13:29:40 -0800

nostrdb/re-apply ispunct crash fix

since it was overwritten when we synced with damus

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mnostrdb/cursor.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nostrdb/cursor.h b/nostrdb/cursor.h @@ -595,7 +595,7 @@ static inline int is_punctuation(unsigned int codepoint) { return 0; // Check for ASCII punctuation - if (ispunct(codepoint)) + if (codepoint <= 128 && ispunct(codepoint)) return 1; // Check for Unicode punctuation exceptions (punctuation allowed in hashtags)