@fileverse-dev/fortune-core 1.2.41 → 1.2.42

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.
@@ -308,9 +308,7 @@ export function getCellTextInfo(cell, renderCtx, sheetCtx, option, ctx) {
308
308
  });
309
309
  similarIndex += 1;
310
310
  } else {
311
- var newValueArray = Array.from(new Intl.Segmenter().segment(newValue), function (s) {
312
- return s.segment;
313
- });
311
+ var newValueArray = newValue.split("");
314
312
  for (var n = 0; n < newValueArray.length; n += 1) {
315
313
  var nv = newValueArray[n];
316
314
  inlineStringArr.push({
@@ -322,9 +322,7 @@ function getCellTextInfo(cell, renderCtx, sheetCtx, option, ctx) {
322
322
  });
323
323
  similarIndex += 1;
324
324
  } else {
325
- var newValueArray = Array.from(new Intl.Segmenter().segment(newValue), function (s) {
326
- return s.segment;
327
- });
325
+ var newValueArray = newValue.split("");
328
326
  for (var n = 0; n < newValueArray.length; n += 1) {
329
327
  var nv = newValueArray[n];
330
328
  inlineStringArr.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fileverse-dev/fortune-core",
3
- "version": "1.2.41",
3
+ "version": "1.2.42",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "typings": "lib/index.d.ts",