Skip to content

[W5][T09-2]Zhang Jingchen - #51

Open
jingchen-z wants to merge 1 commit into
nusCS2113-AY1819S2:masterfrom
jingchen-z:Jingchen
Open

[W5][T09-2]Zhang Jingchen#51
jingchen-z wants to merge 1 commit into
nusCS2113-AY1819S2:masterfrom
jingchen-z:Jingchen

Conversation

@jingchen-z

Copy link
Copy Markdown

Add check conditions on user input in terms of email and phone number.

Also updated the test file.

@cheahzk

cheahzk commented Feb 11, 2019

Copy link
Copy Markdown

Nice small implementation. Checking email for any malicious characters is a good idea.

@sanjukta99 sanjukta99 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good effort! In the future please try to work on a more extensive enhancement so that you can learn more about SE through coding and practice. Please read the review and close this PR.

Comment thread test/expected.txt
|| add: Adds a person to the address book. Contact details can be marked private by prepending 'p' to the prefix.
|| Parameters: NAME [p]p/PHONE [p]e/EMAIL [p]a/ADDRESS [t/TAG]...
|| Example: add John Doe p/98765432 e/johnd@gmail.com a/311, Clementi Ave 2, #02-25 t/friends t/owesMoney
|| ===================================================

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good that you have added multiple test cases!

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.

5 participants