From f8a88255269a759acce016866ffc96331d0af545 Mon Sep 17 00:00:00 2001 From: Andreas Lind Date: Wed, 15 Nov 2017 16:45:44 +0000 Subject: [PATCH] Don't break when docProps/core.xml contains a tag --- lib/xlsx/xform/core/core-xform.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/xlsx/xform/core/core-xform.js b/lib/xlsx/xform/core/core-xform.js index 2cbee85eb..428c7d07c 100644 --- a/lib/xlsx/xform/core/core-xform.js +++ b/lib/xlsx/xform/core/core-xform.js @@ -25,6 +25,7 @@ var CoreXform = module.exports = function() { 'cp:lastModifiedBy': new StringXform({tag: 'cp:lastModifiedBy'}), 'cp:lastPrinted': new DateXform({tag: 'cp:lastPrinted', format: CoreXform.DateFormat}), 'cp:revision': new DateXform({tag: 'cp:revision'}), + 'cp:version': new StringXform({tag: 'cp:version'}), 'cp:contentStatus': new StringXform({tag: 'cp:contentStatus'}), 'dcterms:created': new DateXform({tag: 'dcterms:created', attrs: CoreXform.DateAttrs, format: CoreXform.DateFormat}), 'dcterms:modified': new DateXform({tag: 'dcterms:modified', attrs: CoreXform.DateAttrs, format: CoreXform.DateFormat}) @@ -61,6 +62,7 @@ utils.inherits(CoreXform, BaseXform, { this.map['cp:lastModifiedBy'].render(xmlStream, model.lastModifiedBy); this.map['cp:lastPrinted'].render(xmlStream, model.lastPrinted); this.map['cp:revision'].render(xmlStream, model.revision); + this.map['cp:version'].render(xmlStream, model.version); this.map['cp:contentStatus'].render(xmlStream, model.contentStatus); this.map['dcterms:created'].render(xmlStream, model.created); this.map['dcterms:modified'].render(xmlStream, model.modified);