Skip to content

Commit

Permalink
Edit ingredient qty regex for parseIngredient function
Browse files Browse the repository at this point in the history
  • Loading branch information
DextheChik3n committed Nov 13, 2023
1 parent 956634e commit 3a9d442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/seedu/cafectrl/parser/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class Parser implements ParserUtil {
+ "qty/\\s*(?<ingredientQty>.*)\\s*";
private static final String INGREDIENT_NAME_REGEX_GROUP_LABEL = "ingredientName";
private static final String INGREDIENT_QTY_REGEX_GROUP_LABEL = "ingredientQty";
private static final String INGREDIENT_QTY_FORMAT_REGEX = "^\\s*(?<value>[0-9]*)\\s*(?<unit>[a-zA-z]*)\\s*$";
private static final String INGREDIENT_QTY_FORMAT_REGEX = "^\\s*(?<value>[+-]*[0-9]*)\\s*(?<unit>[a-zA-z]*)\\s*$";
private static final String INGREDIENT_QTY_VALUE_REGEX_GROUP_LABEL = "value";
private static final String INGREDIENT_QTY_UNIT_REGEX_GROUP_LABEL = "unit";
private static final String ADD_DISH_NAME_ARGUMENT = "name/";
Expand Down

0 comments on commit 3a9d442

Please sign in to comment.