matthewlai / JLCKicadTools

Tool for using JLCPCB assembly service with KiCad
GNU General Public License v3.0
346 stars 62 forks source link

Improve LCSC field detection #1

Closed diegoherranz closed 4 years ago

diegoherranz commented 4 years ago

Some MPNs may look similar to a LCSC part number so the detection was failing in certain cases.

For example, it was picking up C0603C270J5GAC (MPN) instead of C1656 (LCSC part number).

This new re doesn't allow anything other that numbers after the C, Cxxxx, which should discard cases like this, and should still work for every LCSC part number as far as I'm aware.

Thanks!

matthewlai commented 4 years ago

Awesome thanks!