G-Node / tonic

Framework for building services that interact with GIN
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

project cannot have special character #37

Open jcolomb opened 3 years ago

jcolomb commented 3 years ago

either transform name before creating stuff, or give an error to the user

achilleas-k commented 3 years ago

Transforming the name doesn't seem feasible. Might be best to add rules in the frontend and throw an error for invalid names. We could reuse the text (and validation code) from GIN:

Will be used to define the URL (path) of the repository. It must be one word (no spaces) and can contain letters (a-z, A-Z), numbers (0-9), dash (-), underscore (_), or dot (.) characters. Repository names should be short, unique and specific (do not use a generic name like "dataset", "plos_paper", etc).