zyjj-web-sdk 1.0.11 → 1.0.12

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/lib/index.js CHANGED
@@ -58482,7 +58482,7 @@ function Y2e(e) {
58482
58482
  x.score = 1, x.source = _n.Default;
58483
58483
  return;
58484
58484
  }
58485
- (O = _.regex) == null || O.find((N) => N == ".*" || new RegExp(N).test(E) ? (x.score = 1, x.source = _n.Regex, !0) : !1), !(E.length > 30) && (_.name.includes(E) ? (x.score = 5, x.source = _n.Keyword) : _.ping_yin.includes(E.toLowerCase()) ? (x.score = 4, x.source = _n.PingYin) : _.ping_yin_first.includes(E.toLowerCase()) && (x.score = 3, x.source = _n.PingYinFirst));
58485
+ (O = _.regex) == null || O.find((N) => N == ".*" ? (x.score = 1, x.source = _n.Regex, !0) : new RegExp(N).test(E) ? (x.score = 2, x.source = _n.Regex, !0) : !1), !(E.length > 30) && (_.name.includes(E) ? (x.score = 5, x.source = _n.Keyword) : _.ping_yin.includes(E.toLowerCase()) ? (x.score = 4, x.source = _n.PingYin) : _.ping_yin_first.includes(E.toLowerCase()) && (x.score = 3, x.source = _n.PingYinFirst));
58486
58486
  }
58487
58487
  });
58488
58488
  const k = y.filter((_) => _.score > 0).sort((_, x) => x.score - _.score);