-
Notifications
You must be signed in to change notification settings - Fork 5
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
[BUG] Update mobile and passport regex #247
[BUG] Update mobile and passport regex #247
Conversation
Codecov Report
@@ Coverage Diff @@
## master #247 +/- ##
=========================================
Coverage 60.33% 60.33%
Complexity 803 803
=========================================
Files 126 126
Lines 2801 2801
Branches 361 361
=========================================
Hits 1690 1690
Misses 961 961
Partials 150 150
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just the minor part with passport in addfriendcommand
@@ -23,7 +23,7 @@ | |||
+ "Example: " + COMMAND_WORD + " " | |||
+ PREFIX_NAME + "John Doe " | |||
+ PREFIX_MOBILE + "91234567 " | |||
+ PREFIX_PASSPORT + "p12345678 "; | |||
+ PREFIX_PASSPORT + "P1234567 "; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think passport should end with a character
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, need to change prefix
new Friend(new Name("Bernice Yu"), new Passport("E1234567"), new Mobile("99272758")), | ||
new Friend(new Name("Charlotte Oliveiro"), new Passport("C1234567"), new Mobile("93210283")), | ||
new Friend(new Name("David Li"), new Passport("D1234567"), new Mobile("99103182")) | ||
new Friend(new Name("Alex Yeoh"), new Passport("S1234567R"), new Mobile("87438807")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefix of SG passport is E, not S
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huh? It's not [STFG] ?
# Conflicts: # src/main/java/seedu/address/logic/command/add/AddFriendCommand.java
…to bug-mobile-regex # Conflicts: # src/main/java/seedu/address/logic/command/add/AddFriendCommand.java
No description provided.