Skip to content
Snippets Groups Projects
Commit cdffcc55 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #247 - multiple commas can be entered as amount

parent 91ddc31c
Branches
Tags
No related merge requests found
...@@ -398,7 +398,7 @@ public class NewPaymentController extends BaseController implements Styleable ...@@ -398,7 +398,7 @@ public class NewPaymentController extends BaseController implements Styleable
} }
String amountText = textFieldAmount.getText(); String amountText = textFieldAmount.getText();
if(!amountText.matches("^-?\\d+(,\\d+)*(\\.\\d+(e\\d+)?)?$")) if(!amountText.matches("^-?\\d+(,\\d+)?(\\.\\d+)?$"))
{ {
showWarning(Localization.getString(Strings.WARNING_PAYMENT_AMOUNT)); showWarning(Localization.getString(Strings.WARNING_PAYMENT_AMOUNT));
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment