diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-21 12:40:48 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-21 12:41:34 +0000 |
commit | 1a00212d6271dddc1276eb2e44afaa30971a2cbd (patch) | |
tree | fb420cb9d1babeedd71f8c001b4292b406a4cb4c /src/libutil/str_util.h | |
parent | 2aea44f606a64dba590a487ef7e82fa3a45969aa (diff) | |
download | rspamd-1a00212d6271dddc1276eb2e44afaa30971a2cbd.tar.gz rspamd-1a00212d6271dddc1276eb2e44afaa30971a2cbd.zip |
[Minor] Core: Extend zero width spaces characters set
Diffstat (limited to 'src/libutil/str_util.h')
-rw-r--r-- | src/libutil/str_util.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h index f95932547..5e3d7a201 100644 --- a/src/libutil/str_util.h +++ b/src/libutil/str_util.h @@ -454,9 +454,13 @@ gchar * rspamd_str_make_utf_valid (const gchar *src, gsize slen, gsize *dstlen); */ gsize rspamd_gstring_strip (GString *s, const gchar *strip_chars); -#define IS_ZERO_WIDTH_SPACE(uc) ((uc) == 0x200b || (uc) == 0x200c) +#define IS_ZERO_WIDTH_SPACE(uc) ((uc) == 0x200B || \ + (uc) == 0x200C || \ + (uc) == 0x200D || \ + (uc) == 0xFEFF) #define IS_OBSCURED_CHAR(uc) (((uc) >= 0x200B && (uc) <= 0x200F) || \ ((uc) >= 0x2028 && (uc) <= 0x202F) || \ - ((uc) >= 0x205F && (uc) <= 0x206F)) + ((uc) >= 0x205F && (uc) <= 0x206F) || \ + (uc) == 0xFEFF) #endif /* SRC_LIBUTIL_STR_UTIL_H_ */ |