diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-10-29 21:43:51 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-10-29 21:43:51 +0100 |
commit | 4ae8a27cb173fc330cb0666085aadb21affa8337 (patch) | |
tree | 83745ebd8539e59f1cdc48f586536b06eade60a1 | |
parent | 1263db3fe0db50dae0a1a08281aed396fbe99dee (diff) | |
download | rspamd-4ae8a27cb173fc330cb0666085aadb21affa8337.tar.gz rspamd-4ae8a27cb173fc330cb0666085aadb21affa8337.zip |
[Minor] Use unicode property for currency detection
Issue: #4320
-rw-r--r-- | rules/regexp/headers.lua | 2 |
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' |