Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions imagemagick.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,12 @@ function parseIdentify(input) {
prevIndent = indents[indents.length - 1];
}
if (comps.length < 2) {
props.push(prop);
prop = prop[currentLine.split(':')[0].trim().toLowerCase()] = {};
// Don't allow bad lines of output, as seen in the rdf property, to
// crash the whole show. Make sure there is a : present
if (currentLine.indexOf(':') !== -1) {
props.push(prop);
prop = prop[currentLine.split(':')[0].trim().toLowerCase()] = {};
}
} else {
prop[comps[0].trim().toLowerCase()] = comps[1].trim()
}
Expand Down