Skip to content

Commit

Permalink
Merge pull request #218 from AbdulrahmanAlRammah/UG_AND_ERROR_MESSAGE…
Browse files Browse the repository at this point in the history
…_CLARITY
  • Loading branch information
liauzhanyi authored Nov 7, 2024
2 parents 7be2f77 + e4a95d6 commit 9fa0763
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/UserGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ _Details coming soon ..._
* Names can contain any characters at all, including spaces, hyphens, and other special characters.
* Names will be stored in their case-sensitive form, but capitalisation will be ignored when checking for duplicate names.
* Eg. Adding a contact as "john Doe" will save them as such, but trying to add a "John Doe" with the same phone number will be marked as a duplicate person and rejected.
* To avoid unexpected behaviour with this, it is recommended that users save contacts with consistent capitalisation rules.
* Other instances of possible duplicates such as identical names except for extra spaces are not handled.

### Phone
* Phones are compulsory for all contacts, and are denoted with the `p/` prefix.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
public class DateOfLastVisit implements Comparable<DateOfLastVisit> {

public static final String MESSAGE_CONSTRAINTS = "Date of last visit should be in dd-MM-yyyy format.\n"
+ "Ensure the date entered is not later than today. ";
+ "Ensure the date entered is valid and not later than today. ";

public static final DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern("dd-MM-uuuu")
.withResolverStyle(ResolverStyle.STRICT);
Expand Down

0 comments on commit 9fa0763

Please sign in to comment.