Skip to content

Commit

Permalink
Merge pull request nus-cs2103-AY2122S1#76 from SHEZADHASSAN22/parseFi…
Browse files Browse the repository at this point in the history
…rstArg-fix

fix parseFirstArgs
  • Loading branch information
rohit0718 committed Oct 13, 2021
2 parents 509688b + 982a63c commit c9c0c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/logic/parser/ParserUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ public static Module parseModule(String code, Optional<String> name) throws Pars
* @throws ParseException if the args string is invalid.
*/
public static Type parseFirstArg(String args, String errorMessage) throws ParseException {
String firstArg = args.split(" ", 2)[0];
String firstArg = args.trim().split(" ", 2)[0];
switch (firstArg) {
case "mod":
return Type.MOD;
Expand Down

0 comments on commit c9c0c06

Please sign in to comment.