diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-03-30 16:44:32 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-03-30 16:44:32 +0100 |
commit | c9e91f011aee0a04ad17c665bffe25539dee323c (patch) | |
tree | a0c316ccdae0b14dce0742a5053dd90b8c6a1e36 | |
parent | 5c25ee1ccb70479b63e24b90d2baf4573ed19951 (diff) | |
download | rspamd-c9e91f011aee0a04ad17c665bffe25539dee323c.tar.gz rspamd-c9e91f011aee0a04ad17c665bffe25539dee323c.zip |
[Minor] Bitcoin: Another fix for bleach32 regexp
-rw-r--r-- | rules/bitcoin.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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', |