Skip to content

Commit

Permalink
fix: warning
Browse files Browse the repository at this point in the history
  • Loading branch information
guanbinrui committed Apr 24, 2024
1 parent 9769cda commit fcd627d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web3-shared/base/src/helpers/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export const resolveNextIDPlatformLink = (networkPlatform: NextIDPlatform, ident
// https://stackoverflow.com/a/67176726
const MATCH_IPFS_CID_RAW =
'Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[2-7A-Za-z]{58,}|B[2-7A-Z]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[\\dA-F]{50,}'
const MATCH_IPFS_DATA_RE = /ipfs\/(data:.*)$/
const MATCH_IPFS_DATA_RE = /ipfs\/(data:\w+)$/
const MATCH_IPFS_CID_RE = new RegExp(`(${MATCH_IPFS_CID_RAW})`)
const MATCH_IPFS_CID_STRICT_RE = new RegExp(`^(?:${MATCH_IPFS_CID_RAW})$`)
const MATCH_IPFS_CID_AT_STARTS_RE = new RegExp(`^https://(?:${MATCH_IPFS_CID_RAW})`)
Expand Down

0 comments on commit fcd627d

Please sign in to comment.