Skip to content

Commit b7fa9ec

Browse files
committed
Strip comma instead of keyboard-adjacent m when compacting CID
1 parent 568d97d commit b7fa9ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stdnum/eu/at_02.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
>>> compact('ES++()+23ZZZ4//7690558N')
3434
'ES23ZZZ47690558N'
3535
>>> compact('mtxxzzz670169305t') # EPC262-08 Version 12.0 / 8.1.15 Malta, example identifier, lowercased
36-
'TXXZZZ670169305T'
36+
'MTXXZZZ670169305T'
3737
>>> calc_check_digits('ESXXZZZ47690558N')
3838
'23'
3939
"""
@@ -52,7 +52,7 @@
5252
def compact(number: str) -> str:
5353
"""Convert the AT-02 number to the minimal representation. This strips
5454
the number of any valid separators and removes invalid characters."""
55-
return clean(number, ' -/?:().m\'+"').strip().upper()
55+
return clean(number, ' -/?:().,\'+"').strip().upper()
5656

5757

5858
def _to_base10(number: str) -> str:

0 commit comments

Comments
 (0)