Skip to content

Commit

Permalink
Remove 'Undefined' from identify command stdout (Fixes #32)
Browse files Browse the repository at this point in the history
  • Loading branch information
gzurbach committed May 3, 2015
1 parent dcb7a4a commit 603f9b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easyimage.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function info(file) {

//Basic error handling
if (stdout) {
var temp = stdout.replace('PixelsPerInch', '').replace('PixelsPerCentimeter', '').split(' ');
var temp = stdout.replace(/PixelsPerInch/g, '').replace(/PixelsPerCentimeter/g, '').replace(/Undefined/g, '').split(/\s+/g);

//Basic error handling:
if (temp.length < 7) {
Expand Down

0 comments on commit 603f9b8

Please sign in to comment.