From ba4ffa410b964e507ee9633840109889ff72cc3b Mon Sep 17 00:00:00 2001 From: Gift-Naomi Date: Sun, 2 Jun 2024 14:47:25 +0100 Subject: [PATCH] refac: modify `ADDRESS_REGEX` --- backend/src/ipfs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/ipfs.ts b/backend/src/ipfs.ts index d293552d..42021ec6 100644 --- a/backend/src/ipfs.ts +++ b/backend/src/ipfs.ts @@ -10,7 +10,7 @@ interface Proposal { starknet_id?: string; } -const ADDRES_REGEX: RegExp = /^0x[0-9a-fA-F]+$/; +const ADDRES_REGEX: RegExp = /^0x[0-9a-fA-F]{64}$/; const MAX_LENGTH: number = 10000; const PINATA_JWT: string = process.env.PINATA_JWT || "";