Skip to content

Commit

Permalink
Added note on numbers without CHE prefix being allowed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffh92 committed May 28, 2024
1 parent c17b573 commit 62e1e78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdnum/ch/uid.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def calc_check_digit(number):

def validate(number):
"""Check if the number is a valid UID. This checks the length, formatting
and check digit."""
and check digit. Numbers without the CHE prefix are allowed."""
number = compact(number)
if len(number) == 9 and isdigits(number):
number = 'CHE' + number
Expand Down

0 comments on commit 62e1e78

Please sign in to comment.