allow possoble breaklines in ipc provider

This commit is contained in:
Fabian Vogelsteller 2016-02-15 10:34:38 +01:00
parent dc12e9b6cb
commit 4a1758f5ab
1 changed files with 4 additions and 4 deletions

View File

@ -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){