From 7d3e82ab4654c5305773a7435c1d70c807441b00 Mon Sep 17 00:00:00 2001 From: "le_hooligan\\Yvng Alan" Date: Wed, 22 Nov 2023 02:04:38 -0500 Subject: [PATCH] Removed unused file --- frontend/src/common/utils/nameFormat.ts | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 frontend/src/common/utils/nameFormat.ts diff --git a/frontend/src/common/utils/nameFormat.ts b/frontend/src/common/utils/nameFormat.ts deleted file mode 100644 index dfe42e377..000000000 --- a/frontend/src/common/utils/nameFormat.ts +++ /dev/null @@ -1,11 +0,0 @@ -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; - } - } - return true; -};