From 2bd00d31f2b80e15f74b82e0433a7a04c2268394 Mon Sep 17 00:00:00 2001 From: mitali-m-mulgaonkar <31123865+mitali-m-mulgaonkar@users.noreply.github.com> Date: Mon, 21 May 2018 16:47:00 +0530 Subject: [PATCH] fixing error- currentLine.search is not a function --- imagemagick.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/imagemagick.js b/imagemagick.js index b846c0c..4fcb2b2 100644 --- a/imagemagick.js +++ b/imagemagick.js @@ -110,6 +110,9 @@ function parseIdentify(input) { for (i in lines) { currentLine = lines[i]; + if(typeof currentLine == "function"){ + continue; + } indent = currentLine.search(/\S/); if (indent >= 0) { comps = currentLine.split(': ');