diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-10 11:49:14 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-10 11:49:14 +0100 |
commit | aaa96909f731c4493cfc707b59fdd4c67f0afcac (patch) | |
tree | fb786b50048f955f4624d20ccca1505ebe4b738d /src | |
parent | 4c2c4f0fdc54f9bdb5371a108c3dc7886e6c81ec (diff) | |
download | rspamd-aaa96909f731c4493cfc707b59fdd4c67f0afcac.tar.gz rspamd-aaa96909f731c4493cfc707b59fdd4c67f0afcac.zip |
[Minor] Reduce digit->number transmission penalty
Issue: #1630
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/chartable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c index 1c50f5194..b0c05fa82 100644 --- a/src/plugins/chartable.c +++ b/src/plugins/chartable.c @@ -209,7 +209,7 @@ rspamd_chartable_process_word_utf (struct rspamd_task *task, /* Penalize digit -> alpha translations */ if (!is_url && sc != UBLOCK_BASIC_LATIN && prev_state != start_process) { - badness += 1.0; + badness += 0.25; } } else if (state == got_alpha) { @@ -305,7 +305,7 @@ rspamd_chartable_process_word_ascii (struct rspamd_task *task, if (state == got_digit) { /* Penalize digit -> alpha translations */ if (seen_alpha && !is_url && !g_ascii_isxdigit (*p)) { - badness += 1.0; + badness += 0.25; } } else if (state == got_alpha) { |