mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-20 06:08:34 +02:00
@@ -134,7 +134,7 @@ class AddressValidator extends TextValidator {
|
||||
case CryptoCurrency.btcln:
|
||||
pattern = '(lnbc|LNBC)([0-9]{1,}[a-zA-Z0-9]+)';
|
||||
default:
|
||||
pattern = '[0-9a-zA-Z]+';
|
||||
return '';
|
||||
}
|
||||
|
||||
return '$BEFORE_REGEX($pattern)$AFTER_REGEX';
|
||||
|
||||
@@ -248,14 +248,11 @@ class CakePayBuyCardPage extends BasePage {
|
||||
}
|
||||
|
||||
bool isWordInCardsName(CakePayCard card, String word) {
|
||||
// word must be followed by a space or beginning of the string
|
||||
final regex = RegExp(r'(^|\s)' + word + r'(\s|$)', caseSensitive: false);
|
||||
|
||||
return regex.hasMatch(card.name.toLowerCase());
|
||||
return card.name.toLowerCase().contains(word.toLowerCase());
|
||||
}
|
||||
|
||||
bool isIOSUnavailable(CakePayCard card) {
|
||||
if (!Platform.isIOS) {
|
||||
if (!Platform.isIOS && !Platform.isMacOS) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user