/* Ugly workaround */
if (IS_PART_HTML (part)) {
part->normalized_words = rspamd_tokenize_text (
- part->content->data,
- part->content->len, IS_PART_UTF (part), task->cfg,
+ part->stripped_content->data,
+ part->stripped_content->len, IS_PART_UTF (part), task->cfg,
part->exceptions, FALSE,
NULL);
}
token->flags = RSPAMD_STAT_TOKEN_FLAG_TEXT;
goto process_exception;
}
- else if (!u_isgraph (uc) || u_ispunct (uc)) {
+ else if (!u_isalnum (uc)) {
token->flags = RSPAMD_STAT_TOKEN_FLAG_TEXT;
goto set_token;
}