Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
made it eth compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
frozeman committed Sep 16, 2015
1 parent 9a82088 commit 508ffd6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/ipc/dechunker.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ module.exports = function(data, callback){

// DE-CHUNKER
var dechunkedData = data
.replace(/\}\{/g,'}|--|{') // }{
.replace(/\}\]\[\{/g,'}]|--|[{') // }][{
.replace(/\}\[\{/g,'}|--|[{') // }[{
.replace(/\}\]\{/g,'}]|--|{') // }]{
.replace(/\}[\n]?\{/g,'}|--|{') // }{
.replace(/\}\][\n]?\[\{/g,'}]|--|[{') // }][{
.replace(/\}\[[\n]?\{/g,'}|--|[{') // }[{
.replace(/\}\][\n]?\{/g,'}]|--|{') // }]{
.split('|--|');


_.each(dechunkedData, function(data) {

// prepend the last chunk
Expand Down

0 comments on commit 508ffd6

Please sign in to comment.