Skip to content

Capital letters not allowed in project names #381

@mattroseman

Description

@mattroseman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions