@xuda.io/drive_module 1.1.972 → 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.
Files changed (2) hide show
  1. package/index.js +4 -1
  2. 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.replace(/<\/?[^>]+(>|$)/g, "").replace(/[\n\t]/g, " ");
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/drive_module",
3
- "version": "1.1.972",
3
+ "version": "1.1.974",
4
4
  "description": "Xuda Drive Server Module",
5
5
  "main": "index.js",
6
6
  "dependencies": {