Skip to content

Commit

Permalink
refac: modify ADDRESS_REGEX
Browse files Browse the repository at this point in the history
  • Loading branch information
Mystic-Nayy committed Jun 2, 2024
1 parent 42d63bd commit ba4ffa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/ipfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 || "";

Expand Down

0 comments on commit ba4ffa4

Please sign in to comment.