CAKE-185 | fixed string resources

This commit is contained in:
Oleksandr Sobol
2020-11-27 09:52:10 +02:00
parent 623299b8f6
commit 4f43e963bf
15 changed files with 110 additions and 28 deletions
@@ -313,8 +313,8 @@ abstract class ExchangeViewModelBase with Store {
final amount = isReceiveAmountEntered
? receiveAmount
: depositAmount;
isValid = RegExp('^([0-9]+([.\,][0-9]{0,8})?|[.\,][0-9]{1,8})\$')
.hasMatch(amount);
final pattern = '^([0-9]+([.\,][0-9]{0,8})?|[.\,][0-9]{1,8})\$';
isValid = RegExp(pattern).hasMatch(amount);
}
return isValid;