Fix to is_boundary to support non-latin characters

This commit is contained in:
cr0bar authored and William Casarin committed 2023-07-11 06:39:12 -07:00
1 parent aae97c5cb7
commit e83e110adb
1 file changed
+1 -1
+1 -1
View File
@@ -432,7 +432,7 @@ static inline int is_whitespace(char c) {
}
static inline int is_boundary(char c) {
return !isalnum(c);
return is_whitespace(c) || ispunct(c);
}
static inline int is_invalid_url_ending(char c) {