From 2ecdb7a83d24f0af18ed8deff4d6b13cb00ee083 Mon Sep 17 00:00:00 2001 From: ChrisHo1341 Date: Thu, 4 Apr 2024 13:13:05 +0800 Subject: [PATCH] Update ParserUtil.java Fix the bug where the parser did not trim the input --- src/main/java/seedu/address/logic/parser/ParserUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/seedu/address/logic/parser/ParserUtil.java b/src/main/java/seedu/address/logic/parser/ParserUtil.java index 834e37a33dd..5020f1ebaa1 100644 --- a/src/main/java/seedu/address/logic/parser/ParserUtil.java +++ b/src/main/java/seedu/address/logic/parser/ParserUtil.java @@ -185,6 +185,7 @@ public static Set parseTags(Collection tags) throws ParseException */ public static String parseFileName(String fileName) throws ParseException { requireNonNull(fileName); - return fileName; + String trimmedFileName = fileName.trim(); + return trimmedFileName; } }