Skip to content

Commit

Permalink
chore: added profile name validation (#2128)
Browse files Browse the repository at this point in the history
Co-authored-by: Gitanjli Chopra <[email protected]>
  • Loading branch information
gitanjli525 and Gitanjli Chopra authored Jan 27, 2025
1 parent 746f8b2 commit 288d855
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 288d855

Please sign in to comment.