mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-23 19:48:13 +00:00
readded regex
This commit is contained in:
parent
a850e6d945
commit
0b287b606f
@ -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…
x
Reference in New Issue
Block a user