Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public static isDocx(zipFile: JSZip): boolean {
return !!(zipFile.files["word/document.xml"] || zipFile.files["word/document2.xml"]);
}
function isDocx(zipFile) {
return !!(zipFile.files["word/document.xml"] || zipFile.files["word/document2.xml"]);
}
FileType.isDocx = isDocx;
public mainFilePath(zip: JSZip): string {
if (zip.files["word/document.xml"]) {
return "word/document.xml";
}
if (zip.files["word/document2.xml"]) {
return "word/document2.xml";
}
return undefined;
}
}
DocxParser.prototype.mainFilePath = function (zip) {
if (zip.files["word/document.xml"]) {
return "word/document.xml";
}
if (zip.files["word/document2.xml"]) {
return "word/document2.xml";
}
return undefined;
};
DocxParser.prototype.splitTextNode = function (textNode, splitIndex, addBefore) {