diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py index 418ef7b..d2071fb 100644 --- a/tabellio/pcfdb/sync.py +++ b/tabellio/pcfdb/sync.py @@ -958,7 +958,7 @@ class SyncFromPcfDbView(BrowserView): if doctype == 'CRICOM': nocric = object.no.split('-')[0] try: - nocric, com_code, nocricom = re.match(r'(\d+)-(.*)(\d+)', object.no).groups() + nocric, com_code, nocricom = re.match(r'(\d+)-(.*?)(\d+)', object.no).groups() except AttributeError: # make sure we do not get anything afterwards nocric, com_code, nocricom = '999', 'XXX', '999'