Skip to content

Commit

Permalink
Merge pull request #258 from AY2324S2-CS2103T-W12-3/218-asset-error
Browse files Browse the repository at this point in the history
Fix wrong add error message
  • Loading branch information
aureliony authored Apr 10, 2024
2 parents 597a718 + 340750b commit 1030676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/model/asset/Asset.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
public class Asset {

public static final String MESSAGE_CONSTRAINTS = "Asset name must not be blank";
public static final String MESSAGE_CONSTRAINTS = "Asset name cannot contain '\\', and should not be blank";
private static final String VALIDATION_REGEX = "\\s*[^\\s\\\\][^\\\\]*";

private final String assetName;
Expand Down

0 comments on commit 1030676

Please sign in to comment.