Skip to content

Commit

Permalink
chore: added profile name validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Gitanjli Chopra authored and Gitanjli Chopra committed Jan 24, 2025
1 parent 8b2e13a commit 667dd3f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ module ProfileActions = {
"Profile name cannot exceed 64 characters"
} else if !RegExp.test(RegExp.fromString(regexForProfileName), profileName) {
"Profile name should not contain special characters"
} else if profileName === defaultProfileName {
"Profile name cannot be same as the current profile name"
} else {
""
}
Expand Down

0 comments on commit 667dd3f

Please sign in to comment.