Skip to content

Commit

Permalink
refac: modify ADDRESS_REGEX and MAX_LENGTH
Browse files Browse the repository at this point in the history
  • Loading branch information
Mystic-Nayy committed Jun 2, 2024
1 parent a8b4db9 commit 42d63bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/ipfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ interface Proposal {
starknet_id?: string;
}

const ADDRES_REGEX: RegExp = /^0x0[0-9a-fA-F]{63}$/;
const MAX_LENGTH: number = 200;
const ADDRES_REGEX: RegExp = /^0x[0-9a-fA-F]+$/;
const MAX_LENGTH: number = 10000;
const PINATA_JWT: string = process.env.PINATA_JWT || "";

const pinToIPFS = async (proposal: Proposal) => {
Expand Down

0 comments on commit 42d63bd

Please sign in to comment.