8000 Support 6 as third digit for foreign people in Ecuador · viggo-devries/python-stdnum@127fff1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 127fff1

Browse files
cormazaarthurdejong
authored andcommitted
Support 6 as third digit for foreign people in Ecuador
Closes arthurdejong#228
1 parent 0d5b8b1 commit 127fff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdnum/ec/ci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def validate(number):
6262
raise InvalidFormat()
6363
if (number[:2] < '01' or number[:2] > '24') and (number[:2] not in ('30', '50')):
6464
raise InvalidComponent() # invalid province code
65-
if number[2] > '5':
65+
if number[2] > '6':
6666
raise InvalidComponent() # third digit wrong
6767
if _checksum(number) != 0:
6868
raise InvalidChecksum()

0 commit comments

Comments
 (0)
0