From 99f1e7e7ae1f363348770a7f542b8f430b662b40 Mon Sep 17 00:00:00 2001 From: Benjamin Toh Date: Mon, 10 Apr 2023 20:35:10 +0800 Subject: [PATCH] fix bug --- docs/team/bentohset.md | 2 +- src/main/java/seedu/penus/storage/StorageDecoder.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/team/bentohset.md b/docs/team/bentohset.md index 2c62e1a219..aecf4e6c7b 100644 --- a/docs/team/bentohset.md +++ b/docs/team/bentohset.md @@ -75,7 +75,7 @@ Storage object diagram: Add module sequence diagram: -![AddModuleSequenceDiagram](/docs/uml/diagrams/AddModSequence.png) +![AddModuleSequenceDiagram](../uml/diagrams/AddModSequence.png) Remove module sequence diagram: diff --git a/src/main/java/seedu/penus/storage/StorageDecoder.java b/src/main/java/seedu/penus/storage/StorageDecoder.java index b9b545199e..f73af81301 100644 --- a/src/main/java/seedu/penus/storage/StorageDecoder.java +++ b/src/main/java/seedu/penus/storage/StorageDecoder.java @@ -51,7 +51,7 @@ public static User decodeUser(String userLine) throws PenusException { public static Module decodemodule(String module) throws PenusException { String[] components = module.split(" ### "); String status = components[0].trim(); - String moduleCode = components[1].trim(); + String moduleCode = components[1].trim().toUpperCase(); if (!ModuleRetriever.isValidMod(moduleCode)) { throw new InvalidModuleException(); }