mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
Add btcln; add 2 assets to SideShift (#890)
* Add btcln; add 2 assets to SideShift * fix regex line * change ordering
This commit is contained in:
parent
8f16af4748
commit
ab20312e61
4 changed files with 11 additions and 2 deletions
|
@ -85,6 +85,8 @@ class AddressValidator extends TextValidator {
|
|||
return 'R[0-9a-zA-Z]{33}';
|
||||
case CryptoCurrency.pivx:
|
||||
return 'D([1-9a-km-zA-HJ-NP-Z]){33}';
|
||||
case CryptoCurrency.btcln:
|
||||
return '^(lnbc|LNBC)([0-9]{1,}[a-zA-Z0-9]+)';
|
||||
default:
|
||||
return '[0-9a-zA-Z]';
|
||||
}
|
||||
|
@ -194,6 +196,8 @@ class AddressValidator extends TextValidator {
|
|||
return [45];
|
||||
case CryptoCurrency.near:
|
||||
return [64];
|
||||
case CryptoCurrency.btcln:
|
||||
return null;
|
||||
default:
|
||||
return [];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue