nostrdb/re-apply ispunct crash fix
since it was overwritten when we synced with damus Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
2f8f18b846
commit
a469f2e127
@@ -595,7 +595,7 @@ static inline int is_punctuation(unsigned int codepoint) {
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
// Check for ASCII punctuation
|
// Check for ASCII punctuation
|
||||||
if (ispunct(codepoint))
|
if (codepoint <= 128 && ispunct(codepoint))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
// Check for Unicode punctuation exceptions (punctuation allowed in hashtags)
|
// Check for Unicode punctuation exceptions (punctuation allowed in hashtags)
|
||||||
|
|||||||
Reference in New Issue
Block a user