mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
Update address_validator.dart (#1805)
This commit is contained in:
parent
e2a1d865af
commit
1320b3ea3c
1 changed files with 3 additions and 4 deletions
|
@ -106,9 +106,8 @@ class AddressValidator extends TextValidator {
|
||||||
case CryptoCurrency.wow:
|
case CryptoCurrency.wow:
|
||||||
pattern = '[0-9a-zA-Z]+';
|
pattern = '[0-9a-zA-Z]+';
|
||||||
case CryptoCurrency.bch:
|
case CryptoCurrency.bch:
|
||||||
pattern = '^(bitcoincash:)?(q|p)[0-9a-zA-Z]{41,42}';
|
pattern = '(?:bitcoincash:)?(q|p)[0-9a-zA-Z]{41}'
|
||||||
case CryptoCurrency.bnb:
|
'|[13][a-km-zA-HJ-NP-Z1-9]{25,34}';
|
||||||
pattern = '[0-9a-zA-Z]+';
|
|
||||||
case CryptoCurrency.hbar:
|
case CryptoCurrency.hbar:
|
||||||
pattern = '[0-9a-zA-Z.]+';
|
pattern = '[0-9a-zA-Z.]+';
|
||||||
case CryptoCurrency.zaddr:
|
case CryptoCurrency.zaddr:
|
||||||
|
@ -203,7 +202,7 @@ class AddressValidator extends TextValidator {
|
||||||
case CryptoCurrency.avaxc:
|
case CryptoCurrency.avaxc:
|
||||||
return [42];
|
return [42];
|
||||||
case CryptoCurrency.bch:
|
case CryptoCurrency.bch:
|
||||||
return [42, 43, 44, 54, 55];
|
return [42, 54, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35];
|
||||||
case CryptoCurrency.bnb:
|
case CryptoCurrency.bnb:
|
||||||
return [42];
|
return [42];
|
||||||
case CryptoCurrency.nano:
|
case CryptoCurrency.nano:
|
||||||
|
|
Loading…
Reference in a new issue