aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/docx/office-xml-reader.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/docx/office-xml-reader.js b/lib/docx/office-xml-reader.js
index 39b700e..861b11e 100644
--- a/lib/docx/office-xml-reader.js
+++ b/lib/docx/office-xml-reader.js
@@ -22,6 +22,9 @@ function read(xmlString) {
function readXmlFromZipFile(docxFile, path) {
if (docxFile.exists(path)) {
return docxFile.read(path, "utf-8")
+ .then(function (xmlString) {
+ return xmlString.replace(/^\uFEFF/g, '');
+ })
.then(read);
} else {
return promises.resolve(null);