Skip to content

Commit

Permalink
[Minor] Bitcoin: Another fix for bleach32 regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Mar 30, 2021
1 parent 5c25ee1 commit c9e91f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/bitcoin.lua
Expand Up @@ -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',
Expand Down

0 comments on commit c9e91f0

Please sign in to comment.