Skip to content

Commit 42e9b77

Browse files
authored
Merge pull request #1659 from kleros/fix/signature-regex
Fix: signature regex for multisig accounts
2 parents b5bd874 + d65ce23 commit 42e9b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/consts/processEnvConsts.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const HERMES_TELEGRAM_BOT_URL =
1717
export const EMAIL_REGEX = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
1818
export const TELEGRAM_REGEX = /^@\w{5,32}$/;
1919
export const ETH_ADDRESS_REGEX = /^0x[a-fA-F0-9]{40}$/;
20-
export const ETH_SIGNATURE_REGEX = /^0x[a-fA-F0-9]{130}$/;
20+
export const ETH_SIGNATURE_REGEX = /^0x([a-fA-F0-9]{130})+$|^0x$/;
2121

2222
export const isProductionDeployment = () => process.env.REACT_APP_DEPLOYMENT === "mainnet";
2323

0 commit comments

Comments
 (0)