easyeda 0.0.25 → 0.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29558,10 +29558,9 @@ export const use${componentName} = createUseComponent(${componentName}, pinNames
29558
29558
 
29559
29559
  // lib/utils/normalize-manufacturer-part-number.ts
29560
29560
  function normalizeManufacturerPartNumber(partNumber) {
29561
- let normalized = partNumber.replace(/-/g, "_");
29562
- normalized = normalized.replace(/[^a-zA-Z0-9_$]/g, "");
29561
+ let normalized = partNumber.replace(/[-]/g, "_").replace(/[^a-zA-Z0-9_$]/g, "_");
29563
29562
  if (/^\d/.test(normalized)) {
29564
- normalized = "A" + normalized;
29563
+ normalized = "A_" + normalized;
29565
29564
  }
29566
29565
  return normalized;
29567
29566
  }