From 186c5734e64aa5bd4619bb374444c39c6e11fbc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 4 Jun 2012 09:54:16 +0200 Subject: [PATCH] make sure not to include cricom number in commission code (#1383) --- tabellio/pcfdb/sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'