aboutsummaryrefslogtreecommitdiffstats
path: root/rules/bitcoin.lua
diff options
context:
space:
mode:
Diffstat (limited to 'rules/bitcoin.lua')
-rw-r--r--rules/bitcoin.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules/bitcoin.lua b/rules/bitcoin.lua
index 6a70721f8..bc8c65805 100644
--- a/rules/bitcoin.lua
+++ b/rules/bitcoin.lua
@@ -183,8 +183,9 @@ local btc_bleach_re = [[/\b(?:(?:[a-zA-Z]\w+:)|(?:bc1))?[qpzry9x8gf2tvdw0s3jn54k
config.regexp['BITCOIN_ADDR'] = {
description = 'Message has a valid bitcoin wallet address',
- -- Use + operator to ensure that each expression is always evaluated
re = string.format('(%s) + (%s) > 0', normal_wallet_re, btc_bleach_re),
+ -- Disable optimizations for this expression to get all addresses
+ expression_flags = { 'noopt' },
re_conditions = {
[normal_wallet_re] = function(task, txt, s, e)
local len = e - s