Skip to content

Commit

Permalink
[Minor] Regexp is case-insensitive, omit redundant characters
Browse files Browse the repository at this point in the history
  • Loading branch information
twesterhever committed Nov 6, 2022
1 parent b178156 commit 2a9abee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/regexp/misc.lua
Expand Up @@ -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',
Expand Down

0 comments on commit 2a9abee

Please sign in to comment.