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 Aug 8, 2024
1 parent 14a0385 commit d761fac
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 d761fac

Please sign in to comment.