easyeda 0.0.312 → 0.0.314

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/index.js CHANGED
@@ -8222,7 +8222,7 @@ var categoryValueContainsPushbutton = (value) => {
8222
8222
  if (/analog\s+switch/.test(normalized) || /multiplex/.test(normalized) || /switching\s+diodes?/.test(normalized) || /\bics?\b/.test(normalized)) {
8223
8223
  return false;
8224
8224
  }
8225
- return /push\s*buttons?/.test(normalized) || /pushbuttons?/.test(normalized) || /tact(?:ile)?\s+switch(?:es)?/.test(normalized) || /keyboard\s+(?:switch(?:es)?|shaft)/.test(normalized) || /mechanical\s+keyboard\s+shaft/.test(normalized);
8225
+ return /push\s*buttons?/.test(normalized) || /pushbuttons?/.test(normalized) || /tact(?:ile)?\s+switch(?:es)?/.test(normalized) || /keyboard\s+(?:switch(?:es)?|shaft)/.test(normalized) || /mechanical\s+keyboard\s+shaft/.test(normalized) || /\bkey[-_\s]+(?:th|smd)(?:\b|[_-])/.test(normalized);
8226
8226
  }
8227
8227
  if (Array.isArray(value)) {
8228
8228
  return value.some(categoryValueContainsPushbutton);
@@ -8238,10 +8238,14 @@ var isPushbuttonCategoryComponent = (betterEasy) => {
8238
8238
  const cPara = betterEasy.dataStr.head.c_para;
8239
8239
  return [
8240
8240
  betterEasy.tags,
8241
+ betterEasy.title,
8242
+ betterEasy.description,
8241
8243
  cPara.category,
8242
8244
  cPara.Category,
8243
8245
  cPara["LCSC Category"],
8244
8246
  cPara["JLCPCB Category"],
8247
+ cPara.package,
8248
+ cPara.pre,
8245
8249
  betterEasy.category
8246
8250
  ].some(categoryValueContainsPushbutton);
8247
8251
  };