From 4a1758f5abc7581ee801cfe59b84f1434dc6b2a9 Mon Sep 17 00:00:00 2001 From: Fabian Vogelsteller Date: Mon, 15 Feb 2016 10:34:38 +0100 Subject: [PATCH] allow possoble breaklines in ipc provider --- lib/web3/ipcprovider.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/web3/ipcprovider.js b/lib/web3/ipcprovider.js index a42172e..4dc46c1 100644 --- a/lib/web3/ipcprovider.js +++ b/lib/web3/ipcprovider.js @@ -82,10 +82,10 @@ IpcProvider.prototype._parseResponse = function(data) { // DE-CHUNKER var dechunkedData = data - .replace(/\}\{/g,'}|--|{') // }{ - .replace(/\}\]\[\{/g,'}]|--|[{') // }][{ - .replace(/\}\[\{/g,'}|--|[{') // }[{ - .replace(/\}\]\{/g,'}]|--|{') // }]{ + .replace(/\}[\n\r]?\{/g,'}|--|{') // }{ + .replace(/\}\][\n\r]?\[\{/g,'}]|--|[{') // }][{ + .replace(/\}[\n\r]?\[\{/g,'}|--|[{') // }[{ + .replace(/\}\][\n\r]?\{/g,'}]|--|{') // }]{ .split('|--|'); dechunkedData.forEach(function(data){