Skip to content

Commit

Permalink
Update PEER_ID_REGEX to match 52-character peer IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
adrastaea committed Dec 3, 2024
1 parent d91a408 commit 243cd9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { createLogger } from '../logger'
const logger = createLogger('invite:validator')

const ONION_ADDRESS_REGEX = /^[a-z0-9]{56}$/g
const PEER_ID_REGEX = /^[a-zA-Z0-9]{46}$/g
const PEER_ID_REGEX = /^[a-zA-Z0-9]{52}$/g
const INVITATION_SEED_REGEX = /^[a-zA-Z0-9]{16}$/g
const COMMUNITY_NAME_REGEX = /^[-a-zA-Z0-9 ]+$/g
const AUTH_DATA_REGEX = /^[A-Za-z0-9_-]+$/g
Expand Down

0 comments on commit 243cd9b

Please sign in to comment.