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.modern.js
CHANGED
|
@@ -2525,6 +2525,7 @@ var parsePastedHtml = function parsePastedHtml(html) {
|
|
|
2525
2525
|
} catch (e) {}
|
|
2526
2526
|
}
|
|
2527
2527
|
var tableNode = _findTag(div, 'TABLE');
|
|
2528
|
+
var spanNode = _findTag(div, 'SPAN');
|
|
2528
2529
|
if (tableNode) {
|
|
2529
2530
|
for (var _iterator2 = _createForOfIteratorHelperLoose(tableNode.children), _step2; !(_step2 = _iterator2()).done;) {
|
|
2530
2531
|
var tableChild = _step2.value;
|
|
@@ -2557,6 +2558,12 @@ var parsePastedHtml = function parsePastedHtml(html) {
|
|
|
2557
2558
|
}
|
|
2558
2559
|
}
|
|
2559
2560
|
}
|
|
2561
|
+
} else if (spanNode) {
|
|
2562
|
+
var _str = '';
|
|
2563
|
+
_str = spanNode.textContent.trim();
|
|
2564
|
+
_str = _str.replaceAll('\n', '');
|
|
2565
|
+
_str = _str.replaceAll(/\s\s+/g, ' ');
|
|
2566
|
+
rows.push([_str]);
|
|
2560
2567
|
}
|
|
2561
2568
|
return {
|
|
2562
2569
|
rows: rows,
|