Environment's as tabs (#6407)

* add: env's as tabs

* fix: test

* fix: tests

* fixes

* fix: test

* fixes

* fixes

* fix

* fix: styling

* fixes
This commit is contained in:
naman-bruno
2025-12-18 16:10:00 +05:30
committed by GitHub
parent 678fa88a7c
commit bc2efb9686
66 changed files with 2198 additions and 1951 deletions

View File

@@ -39,17 +39,17 @@ export const validateNameError = (name) => {
}
if (!firstCharacter.test(name[0])) {
return 'Invalid first character.';
return `Special characters aren't allowed in the name. Invalid character '${name[0]}'.`;
}
for (let i = 1; i < name.length - 1; i++) {
if (!middleCharacters.test(name[i])) {
return `Invalid character '${name[i]}' at position ${i + 1}.`;
return `Special characters aren't allowed in the name. Invalid character '${name[i]}'.`;
}
}
if (!lastCharacter.test(name[name.length - 1])) {
return 'Invalid last character.';
return `Special characters aren't allowed in the name. Invalid character '${name[name.length - 1]}'.`;
}
return '';