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.
@@ -11921,7 +11921,7 @@ var categoryValueContainsPushbutton = (value) => {
11921
11921
  if (/analog\s+switch/.test(normalized) || /multiplex/.test(normalized) || /switching\s+diodes?/.test(normalized) || /\bics?\b/.test(normalized)) {
11922
11922
  return false;
11923
11923
  }
11924
- 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);
11924
+ 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);
11925
11925
  }
11926
11926
  if (Array.isArray(value)) {
11927
11927
  return value.some(categoryValueContainsPushbutton);
@@ -11937,10 +11937,14 @@ var isPushbuttonCategoryComponent = (betterEasy) => {
11937
11937
  const cPara = betterEasy.dataStr.head.c_para;
11938
11938
  return [
11939
11939
  betterEasy.tags,
11940
+ betterEasy.title,
11941
+ betterEasy.description,
11940
11942
  cPara.category,
11941
11943
  cPara.Category,
11942
11944
  cPara["LCSC Category"],
11943
11945
  cPara["JLCPCB Category"],
11946
+ cPara.package,
11947
+ cPara.pre,
11944
11948
  betterEasy.category
11945
11949
  ].some(categoryValueContainsPushbutton);
11946
11950
  };