You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of node's assert.deepEqual bug: nodejs/node#1362 (the bug existed both on io.js and node.js), deep-merge may wrongly merge regexp literal values:
var DeepMerge = require("deep-merge")
var deepmerge = DeepMerge(function (target, source) {
return [].concat(target, source)
})
var a = { foo: "bar", bar: /bar/i }
var b = { bar: "foo", baz: /foo/i }
var res = deepmerge(a, b)
console.log(res)
// expect: { foo: 'bar', bar: [ /bar/i, 'foo' ], baz: /foo/i }
// result: { foo: 'bar', bar: [ /bar/i, 'foo' ], baz: {} }
The text was updated successfully, but these errors were encountered:
Because of node's
assert.deepEqual
bug: nodejs/node#1362 (the bug existed both on io.js and node.js),deep-merge
may wrongly merge regexp literal values:The text was updated successfully, but these errors were encountered: