* test

* macos new build
This commit is contained in:
Omar Hatem
2024-12-03 14:04:11 +03:00
committed by GitHub
parent 0691b9ddb3
commit 01faeabefe
6 changed files with 11 additions and 14 deletions
+1 -1
View File
@@ -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;
}