You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 *(.*)?$/m
And this is what I'm thinking of switching to:
/^\/([a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*) *(.*)?$/m
The text was updated successfully, but these errors were encountered:
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:a-zA-Z0-9
-
but not consecutivelya-zA-Z0-9
This is the current regex:
/^\/([\w]+)\b *(.*)?$/m
And this is what I'm thinking of switching to:
/^\/([a-zA-Z0-9]+(?:[-_][a-zA-Z0-9]+)*) *(.*)?$/m
The text was updated successfully, but these errors were encountered: