Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
added regex
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuldevgarg committed Sep 8, 2023
1 parent 08e89c7 commit e512299
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ class _ExpenseDetailsState extends State<ExpenseDetails> {
textInputType: TextInputType.number,
inputFormatter: [
FilteringTextInputFormatter.allow(
RegExp("[0-9]"))
RegExp(r"^[1-9]\d{5}$"))
],
labelSuffix: '(₹)',
isDisabled: (expenseDetails.allowEdit ?? true)
Expand Down

0 comments on commit e512299

Please sign in to comment.