Skip to content

Commit 75428c0

Browse files
author
David Bashford
committed
Merge branch 'master' of github.com:dbashford/textract
2 parents 8b68ed0 + 2824527 commit 75428c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/extractors/pptx.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ var xpath = require( 'xpath' )
33
, yauzl = require( 'yauzl' )
44
, util = require( '../util' )
55
, slideMatch = /^ppt\/slides\/slide/
6+
, noteMatch = /^ppt\/notesSlides\/notesSlide/
67
;
78

89
function _compareSlides( a, b ) {
@@ -71,7 +72,7 @@ function extractText( filePath, options, cb ) {
7172
});
7273

7374
zipfile.on( 'entry', function( entry ) {
74-
if ( slideMatch.test( entry.fileName ) ) {
75+
if ( slideMatch.test( entry.fileName ) || noteMatch.test( entry.fileName ) ) {
7576
util.getTextFromZipFile( zipfile, entry, function( err2, text ) {
7677
var slide = +entry.fileName.replace( 'ppt/slides/slide', '' ).replace( '.xml', '' );
7778
slides.push({ slide: slide, text: text });

0 commit comments

Comments
 (0)