Skip to content

Commit

Permalink
fixes #109, osx isn't interested in an escaped file path
Browse files Browse the repository at this point in the history
  • Loading branch information
dbashford committed Dec 23, 2016
1 parent c1933bf commit b3ab2af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/extractors/doc-osx.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ var spawn = require( 'child_process' ).spawn
// textutil -convert txt -stdout foo.doc
function extractText( filePath, options, cb ) {
var result = ''
, escapedPath = filePath.replace( /\s/g, '\\ ' )
, error = null
, textutil = spawn( 'textutil', ['-convert', 'txt', '-stdout', escapedPath] )
, textutil = spawn( 'textutil', ['-convert', 'txt', '-stdout', filePath] )
;

textutil.stdout.on( 'data', function( buffer ) {
Expand Down

0 comments on commit b3ab2af

Please sign in to comment.