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

Fixed subject and lesson constraints #147

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/model/student/Lesson.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
public class Lesson {
public static final String MESSAGE_CONSTRAINTS_1 =
"Lessons must be of the form subject|dd-MM-yyyy|hh:mm|0/1, where subject contains only alphabeths"
"Lessons must be of the form subject|dd-MM-yyyy|hh:mm|0/1, where subject contains only alphabets"
+ " and spaces, and indicate lesson incomplete/completed with 0 or 1 respectively.";
public static final String MESSAGE_CONSTRAINTS_2 =
"Lessons must be of the form dd-MM-yyyy|hh:mm OR dd-MM-yyyy|hh:mm|0/1, where the last field of 0 or 1"
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/model/student/Subject.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class Subject {

public static final String MESSAGE_CONSTRAINTS =
"Subjects can only take alphanumeric values and spaces, and it should not be blank";
"Subjects can only take alphabetic values and spaces, and it should not be blank";

public static final String VALIDATION_REGEX = "^[A-Za-z][a-zA-Z ]*$";

Expand Down
Loading