From 13e5863d606dffc51786671a7cd415323db3ae2e Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Tue, 19 Feb 2019 12:56:57 +0300 Subject: [PATCH] [Minor] Use more strict regex in LEAKED_PASSWORD_SCAM to avoid matching `passwordless` --- rules/regexp/misc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/regexp/misc.lua b/rules/regexp/misc.lua index aaf8425bd..642a02e21 100644 --- a/rules/regexp/misc.lua +++ b/rules/regexp/misc.lua @@ -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 +} -- 2.39.5