easyeda 0.0.25 → 0.0.27
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.
- package/dist/cli/main.cjs +4 -5
- package/dist/cli/main.cjs.map +1 -1
- package/dist/lib/index.cjs +3 -4
- package/dist/lib/index.cjs.map +1 -1
- package/package.json +1 -1
package/dist/lib/index.cjs
CHANGED
|
@@ -28831,7 +28831,7 @@ var ShapeItemSchema = import_zod.z.object({
|
|
|
28831
28831
|
endX,
|
|
28832
28832
|
endY
|
|
28833
28833
|
] = arcData.match(
|
|
28834
|
-
/M
|
|
28834
|
+
/M\s*([\d.]+)(?:\s*,\s*|\s+)([\d.]+)\s*A\s*([\d.]+)(?:\s*,\s*|\s+)([\d.]+)\s*([\d.]+)\s*([01])\s*([01])\s*([\d.]+)(?:\s*,\s*|\s+)([\d.]+)/
|
|
28835
28835
|
);
|
|
28836
28836
|
const start = [Number(startX), Number(startY)];
|
|
28837
28837
|
const end = [Number(endX), Number(endY)];
|
|
@@ -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(
|
|
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 = "
|
|
29563
|
+
normalized = "A_" + normalized;
|
|
29565
29564
|
}
|
|
29566
29565
|
return normalized;
|
|
29567
29566
|
}
|