From: Vsevolod Stakhov Date: Sat, 29 Oct 2022 20:43:51 +0000 (+0100) Subject: [Minor] Use unicode property for currency detection X-Git-Tag: 3.4~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4ae8a27cb173fc330cb0666085aadb21affa8337;p=thirdparty%2Frspamd.git [Minor] Use unicode property for currency detection Issue: #4320 --- diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua index 9a01426fc2..e493a663e9 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'