Skip to content

Commit

Permalink
feat: add notEmptyString validator
Browse files Browse the repository at this point in the history
  • Loading branch information
KernAttila committed Mar 28, 2023
1 parent d0dc2a1 commit 76383d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cuesubmit/cuesubmit/Validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,8 @@ def moreThan3Chars(value):
if len(value) >= 3:
return True
return False
def notEmptyString(value):
"""String must contain at least 1 character."""
if len(value) == 0:
return False
return True

0 comments on commit 76383d8

Please sign in to comment.