Skip to content

Non-alphanumeric characters not allowed in tags #6

@Jajared

Description

@Jajared

Describe the bug
This is more of a question than issue. It seems that the decision to only allow for alphanumeric characters in tags can limit options for users. For example, tags should not be just limited to alphanumeric characters (single words in this case). Consider the case where the tag could be multiple words such as 'Best Friend'. However, this is not allowed because of the space which is not regarded as an alphanumeric character. This allowance is reflected in the policy name and thus can be extended to tags

To Reproduce
Steps to reproduce the behavior:

  1. Run the command 'add n/John Doe p/98765432 e/johnd@example.com a/311, Clementi Ave 2, Clients with duplicate phone numbers allowed to be added #2-25 m/2024-07-12 12:00 t/Best Friend'.
  2. An error message indicating that tag names should be alphanumeric appears.

Expected behavior
Depending on future implementations, non-alphanumeric characters may be allowed.

Screenshots
Screenshot 2024-04-19 at 5.06.16 PM.png

Additional context
Nil

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions