commit c9e91f0: [Minor] Bitcoin: Another fix for bleach32 regexp
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Mar 30 15:49:05 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-03-30 16:44:32 +0100
URL: https://github.com/rspamd/rspamd/commit/c9e91f011aee0a04ad17c665bffe25539dee323c (HEAD -> master)
[Minor] Bitcoin: Another fix for bleach32 regexp
---
rules/bitcoin.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rules/bitcoin.lua b/rules/bitcoin.lua
index c14a84dc2..56969536c 100644
--- a/rules/bitcoin.lua
+++ b/rules/bitcoin.lua
@@ -176,7 +176,7 @@ local function is_segwit_bech32_address(task, word)
end
local normal_wallet_re = [[/\b[13LM][1-9A-Za-z]{25,34}\b/AL{sa_body}]]
-local btc_bleach_re = [[/\b(?:[a-zA-Z]\w+:)?[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{14,}\b/AL{sa_body}]]
+local btc_bleach_re = [[/\b(?:(?:[a-zA-Z]\w+:)|(?:bc1))?[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{14,}\b/AL{sa_body}]]
config.regexp['BITCOIN_ADDR'] = {
description = 'Message has a valid bitcoin wallet address',
More information about the Commits
mailing list