Open SherwynNg opened 4 months ago
In this case the app interprets your command as you are trying to name someone BoB Smith x -e@x.x
. Therefore the behaviour is not incorrect. If you wanted to specify @x.x
as the email, you have to remember the space after the -e
.
Team chose [response.Rejected
]
Reason for disagreement: While it's true that the app interpreted the command based on its syntax rules, we must consider the user's perspective and the principle of least surprise. Users may not be familiar with the exact syntax requirements or may forget to include a space after the '-e' option. As a result, the current behavior can lead to confusion and frustration for users who expect the app to gracefully handle common input variations.
To improve user experience and mitigate potential errors, the app could implement more robust input validation and provide clearer feedback when encountering ambiguous commands. For example, instead of solely focusing on the format of names, the app could detect the presence of email-like patterns and prompt the user to confirm their intent. Additionally, offering suggestions or corrections for common mistakes, such as missing spaces, can help users correct their input more easily.
Steps to reproduce:
Expected: I expected it to return me that the command is invalid.
Actual: It returns me the error message "Names should only contain..."