sheet-happens 0.0.55 → 0.0.56
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.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -0
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2528,6 +2528,7 @@ var parsePastedHtml = function parsePastedHtml(html) {
|
|
|
2528
2528
|
} catch (e) {}
|
|
2529
2529
|
}
|
|
2530
2530
|
var tableNode = _findTag(div, 'TABLE');
|
|
2531
|
+
var spanNode = _findTag(div, 'SPAN');
|
|
2531
2532
|
if (tableNode) {
|
|
2532
2533
|
for (var _iterator2 = _createForOfIteratorHelperLoose(tableNode.children), _step2; !(_step2 = _iterator2()).done;) {
|
|
2533
2534
|
var tableChild = _step2.value;
|
|
@@ -2560,6 +2561,12 @@ var parsePastedHtml = function parsePastedHtml(html) {
|
|
|
2560
2561
|
}
|
|
2561
2562
|
}
|
|
2562
2563
|
}
|
|
2564
|
+
} else if (spanNode) {
|
|
2565
|
+
var _str = '';
|
|
2566
|
+
_str = spanNode.textContent.trim();
|
|
2567
|
+
_str = _str.replaceAll('\n', '');
|
|
2568
|
+
_str = _str.replaceAll(/\s\s+/g, ' ');
|
|
2569
|
+
rows.push([_str]);
|
|
2563
2570
|
}
|
|
2564
2571
|
return {
|
|
2565
2572
|
rows: rows,
|