fix: the amount validation regex (#2688)
Konstantin Ullrich committed
Nov 27, 2025 at 13:57 UTC
5fa2bf37ad90dc77525989a1990aa49b33097fd2
1 file changed
+1
-1
lib/core/amount_validator.dart
+1
-1
@@ -73,7 +73,7 @@ class DecimalAmountValidator extends TextValidator {
73
);
74
75
static String _pattern(Currency currency) =>
76
- '^([0-9]+([.\,][0-9]{1,${currency.decimals})?|[.\,][0-9]{1,${currency.decimals}})\$';
76
+ '^([0-9]+([.\,][0-9]{1,${currency.decimals}})?|[.\,][0-9]{1,${currency.decimals}})\$';
77
}
78
79
class AllAmountValidator extends TextValidator {