We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80025f0 commit 63c40b8Copy full SHA for 63c40b8
src/client/utils.ts
@@ -61,9 +61,9 @@ export const detectBlockchain = (address: string): Blockchain | null => {
61
return Blockchain.NEO
62
}
63
if (
64
- /^1[a-zA-Z0-9]{33}$/.test(address) ||
65
- /^3[a-zA-Z0-9]{33}$/.test(address) ||
66
- /^bc1[a-zA-Z0-9]{39}$/.test(address)
+ /^1[a-zA-Z0-9]{25,35}$/.test(address) ||
+ /^3[a-zA-Z0-9]{25,35}$/.test(address) ||
+ /^bc1[a-zA-Z0-9]{39,64}$/.test(address)
67
) {
68
return Blockchain.BTC
69
0 commit comments