* 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
@@ -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;
}