readded regex

This commit is contained in:
Alexandre Van de Sande 2016-02-25 15:21:47 -03:00
parent a850e6d945
commit 0b287b606f
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){