aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-10-29 21:43:51 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-10-29 21:43:51 +0100
commit4ae8a27cb173fc330cb0666085aadb21affa8337 (patch)
tree83745ebd8539e59f1cdc48f586536b06eade60a1 /rules
parent1263db3fe0db50dae0a1a08281aed396fbe99dee (diff)
downloadrspamd-4ae8a27cb173fc330cb0666085aadb21affa8337.tar.gz
rspamd-4ae8a27cb173fc330cb0666085aadb21affa8337.zip
[Minor] Use unicode property for currency detection
Issue: #4320
Diffstat (limited to 'rules')
-rw-r--r--rules/regexp/headers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index 9a01426fc..e493a663e 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -865,7 +865,7 @@ reconf['SUBJECT_HAS_QUESTION'] = {
}
reconf['SUBJECT_HAS_CURRENCY'] = {
- re = 'Subject=/[$€$¢¥₽]/Hu',
+ re = 'Subject=/\\p{Sc}/Hu',
description = 'Subject contains currency',
score = 1.0,
group = 'headers'