Skip to content

Commit 71a7cf0

Browse files
committed
Resolve minor searching bug
1 parent 897b7ab commit 71a7cf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/duke/command/FindCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public String execute(TaskList tasks, Ui ui, Storage storage) {
4343
+ "Here are the matching tasks in your list:\n");
4444
int index = 1;
4545
for (Task task : tasks.getTasks()) {
46-
String taskString = task.toString();
46+
String taskString = task.toString().substring(6);
4747
appendMatched(response, taskString, index++);
4848
}
4949

0 commit comments

Comments
 (0)