-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
enhancementNew feature or requestNew feature or request
Description
The regex being used matches a-zA-Z0-9_. Updating this to include - will let you match usernames which can't be done currently. Usernames have the following criteria:
- Must start with
a-zA-Z0-9 - Can contain multiple
-but not consecutively - Must end with
a-zA-Z0-9
This is the current regex:
/^\/([\w]+)\b *(.*)?$/mAnd this is what I'm thinking of switching to:
/^\/([a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*) *(.*)?$/mhandlename and lamanotrama
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request