Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #53 from seanmcgary/patch-1

Update imagemagick.js
  • Loading branch information...
commit 891b628be9a46b3da80730edb957e289c53874ca 2 parents f22b58c + 1e53278
@rsms authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 imagemagick.js
View
4 imagemagick.js
@@ -114,7 +114,7 @@ function parseIdentify(input) {
indent = currentLine.search(/\S/);
comps = currentLine.split(': ');
if (indent > prevIndent) indents.push(indent);
- while (indent < prevIndent) {
+ while (indent < prevIndent && props.length) {
indents.pop();
prop = props.pop();
prevIndent = indents[indents.length - 1];
@@ -128,7 +128,7 @@ function parseIdentify(input) {
prevIndent = indent;
}
}
- return props[0];
+ return prop;
};
exports.identify = function(pathOrArgs, callback) {
Please sign in to comment.
Something went wrong with that request. Please try again.