junyi73 / pe

0 stars 0 forks source link

Extra white spaces allowed in the addCustomerOrder command #5

Closed junyi73 closed 1 week ago

junyi73 commented 1 week ago

When I add extra white spaces between the o/ prefix and the index, the program still registers it as a success. It seems that white spaces are not handled properly.

How to recreate the bug: 1)Input the command "addCustomerOrder n/b p/98765432 o/ 1[whitespace][whitespace][whitespace] 1" (Assuming that there is such a contact in the contact list already) 2)The program runs it successfully as adding two strawberry waffle orders to that customer.

image.png