From ddd6ae3069bfd28830fd2703486ba76796927970 Mon Sep 17 00:00:00 2001 From: zoebelle-pang Date: Thu, 4 Apr 2024 12:46:57 +0800 Subject: [PATCH] Fix loading storage bug --- src/main/java/seedu/address/model/person/Attendance.java | 2 +- src/main/java/seedu/address/model/person/Payment.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/seedu/address/model/person/Attendance.java b/src/main/java/seedu/address/model/person/Attendance.java index edec7576636..ee6e1d81273 100644 --- a/src/main/java/seedu/address/model/person/Attendance.java +++ b/src/main/java/seedu/address/model/person/Attendance.java @@ -11,7 +11,7 @@ public class Attendance { public static final String MESSAGE_CONSTRAINTS = "Attendance should only be 'Present' or 'Absent', and it should not be blank"; - public static final String VALIDATION_REGEX = "(?i)(present|absent)"; + public static final String VALIDATION_REGEX = "(?i)(present|absent)|-"; public final String value; /** diff --git a/src/main/java/seedu/address/model/person/Payment.java b/src/main/java/seedu/address/model/person/Payment.java index 2ed34a217e1..cffdedeb27d 100644 --- a/src/main/java/seedu/address/model/person/Payment.java +++ b/src/main/java/seedu/address/model/person/Payment.java @@ -10,7 +10,7 @@ public class Payment { public static final String MESSAGE_CONSTRAINTS = "Payment should only be 'Paid' or 'Not Paid', and it should not be blank"; - public static final String VALIDATION_REGEX = "(?i)(paid|not paid)"; + public static final String VALIDATION_REGEX = "(?i)(paid|not paid)|-"; public final String value; /**