Skip to content

tutorial-adding-command - #46

Open
pastchum wants to merge 6 commits into
AY2425S2-CS2103T-T08-2:masterfrom
pastchum:tutorial-adding-command
Open

pastchum wants to merge 6 commits into
AY2425S2-CS2103T-T08-2:masterfrom
pastchum:tutorial-adding-command

Conversation

@pastchum

Copy link
Copy Markdown

No description provided.

@codecov

codecov Bot commented Mar 10, 2025

Copy link
Copy Markdown

RemarkCommand.MESSAGE_USAGE), ive);
}

String remark = argMultimap.getValue(PREFIX_REMARK).orElse("");

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 error catching here

* The first character of the address must not be a whitespace,
* otherwise " " (a blank string) becomes a valid input.
*/
public static final String VALIDATION_REGEX = "[^\\s].*";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I like the use of regex here

phone = new Phone(DEFAULT_PHONE);
email = new Email(DEFAULT_EMAIL);
address = new Address(DEFAULT_ADDRESS);
remark = new Remark(DEFAULT_REMARK);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I like that you added test to this command

@LuBolin

LuBolin commented Mar 28, 2025

Copy link
Copy Markdown

I believe this should be closed, as this is done in another pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants