From a469f2e1271f8468884b17341e241dfcf89f6f10 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sun, 17 Dec 2023 13:29:40 -0800 Subject: [PATCH] nostrdb/re-apply ispunct crash fix since it was overwritten when we synced with damus Signed-off-by: William Casarin --- nostrdb/cursor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nostrdb/cursor.h b/nostrdb/cursor.h index 7de80e30..4fb2038f 100644 --- 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)