jsfiddle / jsfiddle-users

Discussions, issues and docs for JSFiddle.
https://jsfiddle.net
314 stars 114 forks source link

Profile Page: Form Rejects Names Under 3 Characters #1895

Open markni opened 1 month ago

markni commented 1 month ago

Description:

The form validation on profile page currently enforces a minimum of 3 characters for both the "First name" and "Last name" fields, which excludes many legitimate short names, such as "Xi," "Li," or "Jo." This restriction affects users with shorter names across various cultures.

chrome_2024-10-05_15-28-00

chrome_2024-10-05_15-37-54

Steps to Reproduce:

  1. Navigate to the JSFiddle profile page as a logged in user. (https://jsfiddle.net/user/settings/profile/)
  2. Enter a first name or last name with fewer than 3 characters (e.g., "Xi" or "Jo"), and press enter.
  3. Observe the error message.

Expected Behavior:

The form should accept both first and last names with 1 or 2 characters, as these are valid in many cultures.

Actual Behavior:

The form rejects first and last names shorter than 3 characters, displaying an error.

Additional Context:

Examples of Famous Individuals with Short First and Last Names:

  1. Xi Jinping – President of China (last name: Xi)
  2. Li Na – Chinese tennis champion (last name: Li)
  3. Bo Diddley – Legendary American musician and songwriter (first name: Bo)
  4. Jo Cox – British politician (first name: Jo)
  5. Yu Darvish – Japanese baseball player (first name: Yu)