Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new findPhone feature #63

Conversation

ahmadsyuaib
Copy link

Create a new findPhone feature

  • Filters the list by by find phone numbers that begins with given number
  • Additional input will result in an exception thrown

Closes #60

@ahmadsyuaib ahmadsyuaib added this to the v1.3 milestone Oct 15, 2024
@ahmadsyuaib ahmadsyuaib self-assigned this Oct 15, 2024
Copy link

@jereeemyyyy jereeemyyyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment on lines +22 to +25
if (trimmedArgs.isEmpty() || !trimmedArgs.matches("\\d+")) {
throw new ParseException(
String.format(MESSAGE_INVALID_COMMAND_FORMAT, FindPhoneCommand.MESSAGE_USAGE));
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice error handling for invalid arguments!

@jereeemyyyy jereeemyyyy merged commit 9831156 into AY2425S1-CS2103T-F10-1:master Oct 15, 2024
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create new find Phone Number
2 participants