diff options
author | twesterhever <40121680+twesterhever@users.noreply.github.com> | 2022-11-06 17:49:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-06 17:49:52 +0000 |
commit | 2a9abee4cbb8307d97b369337dc1072fad075d33 (patch) | |
tree | f00a702b20da9fb76e7c42a3b3d076d92951c66b /rules/regexp/misc.lua | |
parent | b1781565e2f2d34b01064cb4dba99a301a12c778 (diff) | |
download | rspamd-2a9abee4cbb8307d97b369337dc1072fad075d33.tar.gz rspamd-2a9abee4cbb8307d97b369337dc1072fad075d33.zip |
[Minor] Regexp is case-insensitive, omit redundant characters
Diffstat (limited to 'rules/regexp/misc.lua')
-rw-r--r-- | rules/regexp/misc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/regexp/misc.lua b/rules/regexp/misc.lua index 1304cd81a..66ba34996 100644 --- a/rules/regexp/misc.lua +++ b/rules/regexp/misc.lua @@ -106,7 +106,7 @@ rspamd_config:register_dependency('LEAKED_PASSWORD_SCAM', 'BITCOIN_ADDR') -- content identifier (CID), comprising of either "qm", followed by 44 alphanumerical -- characters (CIDv0), or a CIDv1 of an alphanumerical string of unspecified length, -- depending on the hash algorithm used, but starting with a multibase prefix. -local ipfs_cid = '/(qm[a-z0-9]{44}|[079fFvVtTbBcChkKzZmMuUP][a-z0-9]{44,128})/{url}i' +local ipfs_cid = '/(qm[a-z0-9]{44}|[079fvtbchkzmup][a-z0-9]{44,128})/{url}i' local ipfs_string = '/ipfs(\\.|-|_|\\/|\\?)/{url}i' reconf['HAS_IPFS_GATEWAY_URL'] = { description = 'Message contains InterPlanetary File System (IPFS) gateway URL, likely malicious', |