Skip to content

Feat/validate new project name frontend

What does this MR do and why?

related to #21558

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
image image
image image

How to set up and validate locally

  1. HomePage -> New poeject
  2. 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.

Merge request reports