Skip to content

Commit

Permalink
Added comment explaining logic
Browse files Browse the repository at this point in the history
  • Loading branch information
alantao912 committed Nov 20, 2023
1 parent d109c38 commit 3a6474b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/common/utils/nameFormat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export const isNameValid = (name: string) : boolean => {
name = name.toLowerCase();
for (let i = 0; i < name.length; ++i) {
const c = name.charAt(i);
/* Checks if a character is a letter [a-z] or [A - Z] */
if (c.toLowerCase() === c.toUpperCase()) {
return false;
}
Expand Down

0 comments on commit 3a6474b

Please sign in to comment.