소스 검색

[Minor] Regexp is case-insensitive, omit redundant characters

tags/3.5
twesterhever 1 년 전
부모
커밋
2a9abee4cb
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      rules/regexp/misc.lua

+ 1
- 1
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',

Loading…
취소
저장