-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Improve org name and slug validation #1924
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to call "org URL" something like "org identifier" instead? What we're asking for here isn't a URL, so this could be confusing. Other than that this all looks good!
msg( | ||
"This org URL is invalid. Please use alphanumeric characters and dashes (-) only.", | ||
str`The org URL "${slug}" is not a valid URL. Please use alphanumeric characters and dashes (-) only`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
str`The org URL "${slug}" is not a valid URL. Please use alphanumeric characters and dashes (-) only`, | |
str`"${slug}" is not a valid org URL. Please use only alphanumeric characters and dashes (-).`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comments as Emma (though I think "URL identifier" works well), otherwise looks great. Nice work!
Co-authored-by: Emma Segal-Grossman <hi@emma.cafe>
Makes sense to me, I just copied over the previously approved error messages--will go with |
Resolves #1892
Changes
Screenshots