@leankylin-sheet/core 3.1.45 → 3.1.46

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.esm.js CHANGED
@@ -36583,7 +36583,11 @@ function searchFunction(ctx, searchtxt) {
36583
36583
  for (var _i17 = 0; _i17 < functionlist.length; _i17 += 1) {
36584
36584
  var item = functionlist[_i17];
36585
36585
  var n = item.n;
36586
- if (n.indexOf(searchtxt) > -1) {
36586
+ if (n === searchtxt) {
36587
+ f.unshift(item);
36588
+ } else if (_.startsWith(n, searchtxt)) {
36589
+ s.unshift(item);
36590
+ } else if (n.indexOf(searchtxt) > -1) {
36587
36591
  t.unshift(item);
36588
36592
  }
36589
36593
  }
package/dist/index.js CHANGED
@@ -36593,7 +36593,11 @@ function searchFunction(ctx, searchtxt) {
36593
36593
  for (var _i17 = 0; _i17 < functionlist.length; _i17 += 1) {
36594
36594
  var item = functionlist[_i17];
36595
36595
  var n = item.n;
36596
- if (n.indexOf(searchtxt) > -1) {
36596
+ if (n === searchtxt) {
36597
+ f.unshift(item);
36598
+ } else if (___default['default'].startsWith(n, searchtxt)) {
36599
+ s.unshift(item);
36600
+ } else if (n.indexOf(searchtxt) > -1) {
36597
36601
  t.unshift(item);
36598
36602
  }
36599
36603
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/core",
3
- "version": "3.1.45",
3
+ "version": "3.1.46",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "build": "father-build"
14
14
  },
15
15
  "dependencies": {
16
- "@leankylin-sheet/formula-parser": "3.1.45",
16
+ "@leankylin-sheet/formula-parser": "3.1.46",
17
17
  "dayjs": "^1.11.0",
18
18
  "immer": "^9.0.12",
19
19
  "lodash": "^4.17.21",