mirror of https://github.com/status-im/web3.js.git
readded regex
This commit is contained in:
parent
a850e6d945
commit
0b287b606f
|
@ -82,10 +82,10 @@ IpcProvider.prototype._parseResponse = function(data) {
|
||||||
|
|
||||||
// DE-CHUNKER
|
// DE-CHUNKER
|
||||||
var dechunkedData = data
|
var dechunkedData = data
|
||||||
.replace(/\}\{/g,'}|--|{') // }{
|
.replace(/\}[\n\r]?\{/g,'}|--|{') // }{
|
||||||
.replace(/\}\]\[\{/g,'}]|--|[{') // }][{
|
.replace(/\}[\n\r]?\]\[\{/g,'}]|--|[{') // }][{
|
||||||
.replace(/\}\[\{/g,'}|--|[{') // }[{
|
.replace(/\}[\n\r]?\[\{/g,'}|--|[{') // }[{
|
||||||
.replace(/\}\]\{/g,'}]|--|{') // }]{
|
.replace(/\}[\n\r]?\]\{/g,'}]|--|{') // }]{
|
||||||
.split('|--|');
|
.split('|--|');
|
||||||
|
|
||||||
dechunkedData.forEach(function(data){
|
dechunkedData.forEach(function(data){
|
||||||
|
|
Loading…
Reference in New Issue