mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-06-28 04:45:36 -04:00
trying stuff out
This commit is contained in:
parent
245597c494
commit
4be0ea5870
9 changed files with 50 additions and 37 deletions
|
@ -1,7 +1,7 @@
|
|||
function usernameValidation(username) {
|
||||
const errors = [];
|
||||
if (username.length < 5) {
|
||||
errors.push("*username must be at least 8 characters");
|
||||
errors.push("*username must be at least 5 characters");
|
||||
}
|
||||
|
||||
if (username.includes(" ")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue