mirror of https://github.com/status-im/web3.js.git
allow possoble breaklines in ipc provider
This commit is contained in:
parent
dc12e9b6cb
commit
4a1758f5ab
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue