Skip to content

Commit

Permalink
Updated regex to match UG
Browse files Browse the repository at this point in the history
  • Loading branch information
limerencee committed Oct 31, 2019
1 parent 4932923 commit 7ded223
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/thrift/model/transaction/Budget.java
Expand Up @@ -13,8 +13,8 @@ public class Budget {

public static final SimpleDateFormat BUDGET_DATE_FORMAT = new SimpleDateFormat("MM/yyyy");
public static final String DATE_CONSTRAINTS = "Month should be in the following format: MM/yyyy."
+ ", where MM is an integer between 01-12";
public static final String VALIDATION_REGEX = "^(0[1-9]|10|11|12)\\/\\d{4}$";
+ ", where MM is an integer between 01-12 and yyyy is between 0001-9999";
public static final String VALIDATION_REGEX = "^(0[1-9]|10|11|12)\\/(?!0{4})[0-9]{4}$";

private Calendar period;
private BudgetValue value;
Expand Down

0 comments on commit 7ded223

Please sign in to comment.