]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Use unicode property for currency detection
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 29 Oct 2022 20:43:51 +0000 (21:43 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 29 Oct 2022 20:43:51 +0000 (21:43 +0100)
Issue: #4320

rules/regexp/headers.lua

index 9a01426fc272951da54085c0eeeb935538742f9e..e493a663e9d775e502f265d81d6e87f7a290c662 100644 (file)
@@ -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'