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

[BUG] Update mobile and passport regex #247

Merged
merged 9 commits into from
Nov 4, 2020

Conversation

lyeyixian
Copy link
Collaborator

No description provided.

@lyeyixian lyeyixian added this to the v1.4 milestone Nov 1, 2020
@lyeyixian lyeyixian linked an issue Nov 1, 2020 that may be closed by this pull request
@codecov-io
Copy link

codecov-io commented Nov 1, 2020

Codecov Report

Merging #247 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            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           
Impacted Files Coverage Δ Complexity Δ
...du/address/logic/command/add/AddFriendCommand.java 85.71% <ø> (ø) 8.00 <0.00> (ø)
...c/main/java/seedu/address/model/friend/Mobile.java 81.81% <ø> (ø) 7.00 <0.00> (ø)
...main/java/seedu/address/model/friend/Passport.java 81.81% <ø> (ø) 7.00 <0.00> (ø)
...u/address/model/util/SampleWanderlustDataUtil.java 0.00% <ø> (ø) 0.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1eba787...d70067f. Read the comment docs.

@lyeyixian lyeyixian changed the title [BUG] Update mobile regex [BUG] Update mobile and passport regex Nov 1, 2020
Copy link
Collaborator

@underthehai underthehai left a 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 ";
Copy link
Collaborator

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

Copy link

@jiaweiteo jiaweiteo left a 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")),

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

Copy link
Collaborator Author

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] ?

@lyeyixian lyeyixian merged commit c0203eb into AY2021S1-CS2103-T14-3:master Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants