Skip to content
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

Capital letters not allowed in project names #381

Open
mattroseman opened this issue Mar 30, 2018 · 0 comments
Open

Capital letters not allowed in project names #381

mattroseman opened this issue Mar 30, 2018 · 0 comments

Comments

@mattroseman
Copy link
Contributor

Replicate

  1. run ./torus link in a new folder and create a new project
  2. On the ✗ Create a new project: prompt type something with capital letters (like TorusTestProject)
  3. Get this error message
 Project names must be between 1 and 64 characters in length and only contain alphabetical letters, numbers, hyphens, and underscores.

The error message says nothing of letters needing to be lowercase, but that seems to be the case.

In the validation code validate/validate.go:11 It only allows lowercase, but the error message doesn't specify as such.

The error message also doesn't specify that the project name must start with a letter.

If I can make a suggestion, I would reword it to something like

Project names must be between 1 and 64 characters in length; only contain lowercase
letters, numbers, hyphens, and underscores; and begin with a lowercase letter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant