@fileverse-dev/fortune-core 1.2.62-patch-2 → 1.2.62-patch-4

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.
@@ -40,7 +40,7 @@ export function genarate(value) {
40
40
  if (_.isNil(value)) {
41
41
  return null;
42
42
  }
43
- if (/^-?[0-9]{1,}[,][0-9]{3}(.[0-9]{1,2})?$/.test(value)) {
43
+ if (/^-?[0-9]{1,}[,][0-9]{3}(.[0-9]{1,2})?$/.test(value) && !Array.isArray(value)) {
44
44
  value = value;
45
45
  m = value;
46
46
  v = Number(value.split(".")[0].replace(",", ""));
@@ -1635,9 +1635,7 @@ export function handleFormulaInput(ctx, $copyTo, $editor, kcode, preText, refres
1635
1635
  } else if (!_.startsWith(value1txt, "=")) {
1636
1636
  if (!$copyTo) return;
1637
1637
  if ($copyTo.id === "luckysheet-rich-text-editor") {
1638
- if (!_.startsWith($copyTo.innerHTML, "<span")) {
1639
- $copyTo.innerHTML = escapeHTMLTag(value);
1640
- }
1638
+ $copyTo.innerHTML = escapeHTMLTag(value);
1641
1639
  } else {
1642
1640
  $copyTo.innerHTML = escapeHTMLTag(value);
1643
1641
  }
@@ -51,7 +51,7 @@ function genarate(value) {
51
51
  if (_lodash.default.isNil(value)) {
52
52
  return null;
53
53
  }
54
- if (/^-?[0-9]{1,}[,][0-9]{3}(.[0-9]{1,2})?$/.test(value)) {
54
+ if (/^-?[0-9]{1,}[,][0-9]{3}(.[0-9]{1,2})?$/.test(value) && !Array.isArray(value)) {
55
55
  value = value;
56
56
  m = value;
57
57
  v = Number(value.split(".")[0].replace(",", ""));
@@ -1665,9 +1665,7 @@ function handleFormulaInput(ctx, $copyTo, $editor, kcode, preText, refreshRangeS
1665
1665
  } else if (!_lodash.default.startsWith(value1txt, "=")) {
1666
1666
  if (!$copyTo) return;
1667
1667
  if ($copyTo.id === "luckysheet-rich-text-editor") {
1668
- if (!_lodash.default.startsWith($copyTo.innerHTML, "<span")) {
1669
- $copyTo.innerHTML = (0, _utils.escapeHTMLTag)(value);
1670
- }
1668
+ $copyTo.innerHTML = (0, _utils.escapeHTMLTag)(value);
1671
1669
  } else {
1672
1670
  $copyTo.innerHTML = (0, _utils.escapeHTMLTag)(value);
1673
1671
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.2.62-patch-2",
3
+ "version": "1.2.62-patch-4",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",