This commit is contained in:
2026-06-25 14:12:59 -04:00
parent 7bc6e2cb4d
commit fea93b24b8
5 changed files with 56 additions and 56 deletions

View File

@@ -11,6 +11,8 @@ def validate_cat_name(name, auto_gen=False):
else:
if len(name) < 4 or len(name) > 9:
return "Your cat's name must be greater than 3 characters and below 9 characters long."
if not any(c in "aeiou" for c in name.lower()):
return "Your cat's name must contain a vowel."
if not all(c in ALLOWED for c in name):
return "Your cat's name can only have letters and numbers."
if not any(c in string.ascii_letters for c in name):