mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
fix: the amount validation regex (#2688)
This commit is contained in:
@@ -73,7 +73,7 @@ class DecimalAmountValidator extends TextValidator {
|
||||
);
|
||||
|
||||
static String _pattern(Currency currency) =>
|
||||
'^([0-9]+([.\,][0-9]{1,${currency.decimals})?|[.\,][0-9]{1,${currency.decimals}})\$';
|
||||
'^([0-9]+([.\,][0-9]{1,${currency.decimals}})?|[.\,][0-9]{1,${currency.decimals}})\$';
|
||||
}
|
||||
|
||||
class AllAmountValidator extends TextValidator {
|
||||
|
||||
Reference in New Issue
Block a user