@xuda.io/drive_module 1.1.973 → 1.1.974
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/index.js +4 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1803,7 +1803,10 @@ const ocr_drive_file = async function (app_id, doc) {
|
|
|
1803
1803
|
break;
|
|
1804
1804
|
}
|
|
1805
1805
|
|
|
1806
|
-
doc.ocr = ocr
|
|
1806
|
+
doc.ocr = ocr
|
|
1807
|
+
.replace(/<\/?[^>]+(>|$)/g, "")
|
|
1808
|
+
.replace(/[\n]/g, " ")
|
|
1809
|
+
.replace(/[\t]/g, "");
|
|
1807
1810
|
doc.ocr_stat = 3;
|
|
1808
1811
|
} catch (err) {
|
|
1809
1812
|
doc.ocr_stat = 4;
|