]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Use more strict regex in LEAKED_PASSWORD_SCAM 2761/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Tue, 19 Feb 2019 09:56:57 +0000 (12:56 +0300)
committerGitHub <noreply@github.com>
Tue, 19 Feb 2019 09:56:57 +0000 (12:56 +0300)
to avoid matching `passwordless`

rules/regexp/misc.lua

index aaf8425bdcdf992e4416e81ed9f77053b91837d0..642a02e21068a8f7228bd01674088aeea9aa923a 100644 (file)
@@ -64,7 +64,7 @@ reconf['HAS_ONION_URI'] = {
 local my_victim = [[/(?:victim|prey)/{words}]]
 local your_webcam = [[/webcam/{words}]]
 local your_onan = [[/(?:mast[ur]{2}bati(?:on|ng)|onanism|solitary)/{words}]]
-local password_in_words = [[/^pass(?:(?:word)|(?:phrase))/i{words}]]
+local password_in_words = [[/^pass(?:(?:word)|(?:phrase))$/i{words}]]
 local btc_wallet_address = [[/^[13][0-9a-zA-Z]{25,34}$/{words}]]
 local wallet_word = [[/^wallet$/{words}]]
 local broken_unicode = [[has_flag(bad_unicode)]]
@@ -93,4 +93,4 @@ reconf['LEAKED_PASSWORD_SCAM'] = {
   },
   score = 7.0,
   group = 'scams'
-}
\ No newline at end of file
+}