diff --git a/stdnum/eu/at_02.py b/stdnum/eu/at_02.py index 610ef615..60b51643 100644 --- a/stdnum/eu/at_02.py +++ b/stdnum/eu/at_02.py @@ -32,6 +32,8 @@ 'ES2300047690558N' >>> compact('ES++()+23ZZZ4//7690558N') 'ES23ZZZ47690558N' +>>> compact('mt50zzz670169305t') # EPC262-08 Version 12.0 / 8.1.15 Malta, example identifier, lowercased +'MT50ZZZ670169305T' >>> calc_check_digits('ESXXZZZ47690558N') '23' """ @@ -50,7 +52,7 @@ def compact(number: str) -> str: """Convert the AT-02 number to the minimal representation. This strips the number of any valid separators and removes invalid characters.""" - return clean(number, ' -/?:().m\'+"').strip().upper() + return clean(number, ' -/?:().,\'+"').strip().upper() def _to_base10(number: str) -> str: