We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b5bd874 + d65ce23 commit 42e9b77Copy full SHA for 42e9b77
web/src/consts/processEnvConsts.ts
@@ -17,7 +17,7 @@ export const HERMES_TELEGRAM_BOT_URL =
17
export const EMAIL_REGEX = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
18
export const TELEGRAM_REGEX = /^@\w{5,32}$/;
19
export const ETH_ADDRESS_REGEX = /^0x[a-fA-F0-9]{40}$/;
20
-export const ETH_SIGNATURE_REGEX = /^0x[a-fA-F0-9]{130}$/;
+export const ETH_SIGNATURE_REGEX = /^0x([a-fA-F0-9]{130})+$|^0x$/;
21
22
export const isProductionDeployment = () => process.env.REACT_APP_DEPLOYMENT === "mainnet";
23
0 commit comments