easyeda 0.0.382 → 0.0.383

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/main.cjs CHANGED
@@ -1078,7 +1078,7 @@ var import_promises = __toESM(require("fs/promises"), 1);
1078
1078
  var package_default = {
1079
1079
  name: "easyeda",
1080
1080
  type: "module",
1081
- version: "0.0.381",
1081
+ version: "0.0.382",
1082
1082
  files: [
1083
1083
  "dist"
1084
1084
  ],
@@ -18977,7 +18977,8 @@ var isInductorComponent = (betterEasy) => {
18977
18977
  const componentParameters = betterEasy.dataStr.head.c_para;
18978
18978
  const packageName = componentParameters.package;
18979
18979
  const value = componentParameters.Value;
18980
- return packageName?.toUpperCase().startsWith("IND-") === true && typeof value === "string" && inductancePattern.test(value.trim());
18980
+ const hasInductorIdentity = componentParameters.pre?.toUpperCase() === "L?" || packageName?.toUpperCase().startsWith("IND-") === true;
18981
+ return hasInductorIdentity && typeof value === "string" && inductancePattern.test(value.trim());
18981
18982
  };
18982
18983
 
18983
18984
  // lib/websafe/convert-to-typescript-component/is-micro-usb-connector-component.ts