Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

angular.merge() turns regexps into empty objects #12409

Closed
mondalaci opened this issue Jul 22, 2015 · 0 comments
Closed

angular.merge() turns regexps into empty objects #12409

mondalaci opened this issue Jul 22, 2015 · 0 comments

Comments

@mondalaci
Copy link

var jQueryMerged = $.extend(true, {}, {regexp:/blah/});
var angularMerged = angular.merge({}, {regexp:/blah/});

jQueryMerged.regexp yields /blah/
angularMerged.regexp yields Object {}

@Narretz Narretz added this to the Backlog milestone Jul 23, 2015
@caitp caitp closed this as completed in a5221f3 Jul 24, 2015
netman92 pushed a commit to netman92/angular.js that referenced this issue Aug 8, 2015
angular.merge({ key: /regexp/ }) now works the way you'd expect it to.

Horray!

Closes angular#12419
Closes angular#12409
ggershoni pushed a commit to ggershoni/angular.js that referenced this issue Sep 29, 2015
angular.merge({ key: /regexp/ }) now works the way you'd expect it to.

Horray!

Closes angular#12419
Closes angular#12409
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants