adjust linearization of regexes and buffers

master
Conduitry 5 years ago
parent d4160ef4fd
commit d6f5ea9b89

@ -19,13 +19,13 @@ let recurse = obj => {
temp.forEach(key => recurse(obj[key]))
return
case RegExp.prototype:
array.push(REGEXP, obj.source, obj.flags)
array.push(REGEXP, obj.toString())
return
case Date.prototype:
array.push(DATE, obj.getTime())
return
case Buffer.prototype:
array.push(BUFFER, obj.toString('base64'))
array.push(BUFFER, obj.toString('binary'))
return
}
}

Loading…
Cancel
Save