tracespace / gerber-to-svg

gerber-to-svg development moved to tracespace/tracespace
https://github.com/tracespace/tracespace
MIT License
81 stars 20 forks source link

aperture definitions with leading zeros can fail #5

Closed mcous closed 10 years ago

mcous commented 10 years ago

If a Gerber file defines a tool like: %ADD010C,0.001*% and then attempts to switch to that tool with D10*, the conversion will fail.

The library is looking for D010, not realizing that this is the same thing as D10.

Leading zeros should be removed in the parsing stage.