Skip to content

Commit 630150e

Browse files
committed
Fix some issues.
1 parent 99cd6fc commit 630150e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/extractors/docx.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import xpath from "xpath";
22
import { DOMParser } from "@xmldom/xmldom";
33
import yauzl from "yauzl";
4-
import { yauzlError, getTextFromZipFile, cleanseText } from "../utils";
4+
import { yauzlError, getTextFromZipFile, cleanseText } from "../utils.js";
55

66
const includeRegex = /.xml$/;
77
const excludeRegex = /^(word\/media\/|word\/_rels\/)/;

src/extractors/text.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import fs from "fs";
22
import path from "path";
33
import iconv from "iconv-lite";
44
import jschardet from "jschardet";
5-
import { cleanseText } from "../utils";
5+
import { cleanseText } from "../utils.js";
66

77
function extractText(filePath: string, options: any): Promise<string | Error> {
88
return new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)