easyeda 0.0.273 → 0.0.274

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.
@@ -11332,6 +11332,7 @@ var getPinLabelValues = (labels) => {
11332
11332
  if (typeof labels === "string") return [labels];
11333
11333
  return [...labels];
11334
11334
  };
11335
+ var stripEasyEdaPolarityHintDecoration = (label) => label.toLowerCase().replace(/[^a-z0-9+-]/g, "");
11335
11336
  var getPinKeySortValue = (pinKey) => {
11336
11337
  const match = /^pin(\d+)$/i.exec(pinKey);
11337
11338
  return match ? Number(match[1]) : Number.MAX_SAFE_INTEGER;
@@ -11339,7 +11340,7 @@ var getPinKeySortValue = (pinKey) => {
11339
11340
  var getPolarizedPinMetadata = (pinLabels) => {
11340
11341
  const labelsByPin = Object.entries(pinLabels ?? {}).map(([pin, labels]) => ({
11341
11342
  pin,
11342
- labels: getPinLabelValues(labels).map((label) => label.toLowerCase())
11343
+ labels: getPinLabelValues(labels).map(stripEasyEdaPolarityHintDecoration)
11343
11344
  }));
11344
11345
  const anodePin = labelsByPin.find(
11345
11346
  ({ labels }) => labels.some((label) => ["a", "anode", "pos", "+"].includes(label))