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)