- added a fix in the Excellon parser by allowing a comma in the tool definitions between the diameter and the rest

This commit is contained in:
Marius Stanciu
2019-03-30 02:55:11 +02:00
parent 3b0496ddb9
commit 79e5cce6f1
2 changed files with 2 additions and 1 deletions

View File

@@ -3636,7 +3636,7 @@ class Excellon(Geometry):
# r'(?=.*F(\d*\.?\d*))?(?=.*S(\d*\.?\d*))?' +
# r'(?=.*B(\d*\.?\d*))?(?=.*H(\d*\.?\d*))?' +
# r'(?=.*Z([-\+]?\d*\.?\d*))?[CFSBHT]')
self.toolset_re = re.compile(r'^T(\d+)(?=.*C(\d*\.?\d*))?' +
self.toolset_re = re.compile(r'^T(\d+)(?=.*C,?(\d*\.?\d*))?' +
r'(?=.*F(\d*\.?\d*))?(?=.*S(\d*\.?\d*))?' +
r'(?=.*B(\d*\.?\d*))?(?=.*H(\d*\.?\d*))?' +
r'(?=.*Z([-\+]?\d*\.?\d*))?[CFSBHT]')