Skip to content

Commit

Permalink
Allow three number short number (it's more important to check for too…
Browse files Browse the repository at this point in the history
… long numbers for accidental full numbers) [fixes #2]
  • Loading branch information
datakurre committed May 30, 2016
1 parent 6b5e967 commit 3aa2bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collective/roster/behaviors/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class InvalidShortNumber(ValidationError):


def is_short_number(value):
if value < 999 or value > 9999:
if value < 99 or value > 9999:
raise InvalidShortNumber(value)
return True

Expand Down

0 comments on commit 3aa2bde

Please sign in to comment.