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.
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!