Skip to content

Commit

Permalink
Update src/viur/core/bones/string.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sven Eberth <[email protected]>
  • Loading branch information
ArneGudermann and sveneberth authored Apr 15, 2024
1 parent 98c0d05 commit 137cade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viur/core/bones/string.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def isInvalid(self, value):
return "Minimum length not reached"

if self.charset:
if not all([char in self.charset for char in value]):
if any(char not in self.charset for char in value):
return "Not all letters are available in the charset"
return None

Expand Down

0 comments on commit 137cade

Please sign in to comment.