Skip to content

Commit

Permalink
Merge pull request #209 from NatLeong/fix-check-input
Browse files Browse the repository at this point in the history
Fix check command to accept complete NRIC with lowercase
  • Loading branch information
alex-setyawan authored Apr 10, 2024
2 parents ad55575 + 6bc04d9 commit ebcee08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class CheckCommandParser implements Parser<CheckCommand> {
*/
public CheckCommand parse(String args) throws ParseException {
requireNonNull(args);
String trimmedArg = args.trim();
String trimmedArg = args.trim().toUpperCase();
if (trimmedArg.isEmpty()) {
throw new ParseException(
String.format(MESSAGE_INVALID_COMMAND_FORMAT, CheckCommand.MESSAGE_USAGE));
Expand Down

0 comments on commit ebcee08

Please sign in to comment.