Feat/validate new project name frontend
What does this MR do and why?
related to #21558 (closed)
This mr is used to check the format of "Project Name" in frontend when creating a project.
There are two rules:
-
Start:
Must start with a letter, digit, emoji, or '_' -
Body:
Name can contain only letters, digits, emojis, '_', '.','+', dashes, or spaces
Note: The regex follow The backend's regex: lib/gitlab/regex.rb:258
/cc @JeremyWuuuuu @prajnamas @orozot @qk44077907 @aqualls
Screenshots or screen recordings
before | after |
---|---|
How to set up and validate locally
- HomePage -> New poeject
- Observed
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.