SuperNETorg / Agama

Please use http://github.com/komodoplatform/agama
MIT License
37 stars 100 forks source link

Regex for z-addresses in to/from #246

Open imylomylo opened 6 years ago

imylomylo commented 6 years ago

Hi SuperNET

To try to limit user errors, a regex for the input of wallet addresses might help people from making mistakes (and support requests)

e.g. var bitcoinAddressPattern = new RegExp(/^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$/); which I got from the 2nd response https://stackoverflow.com/questions/21683680/regex-to-match-bitcoin-addresses

HTH