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

angular.copy does not correctly duplicate RegExp #3473

Closed
AndyHitchman opened this issue Aug 6, 2013 · 0 comments
Closed

angular.copy does not correctly duplicate RegExp #3473

AndyHitchman opened this issue Aug 6, 2013 · 0 comments

Comments

@AndyHitchman
Copy link
Contributor

Similarly to issue #49 (copying Date objects), angular.copy does not correctly duplicate RegExp objects. The result is an empty object '{}'.

AndyHitchman added a commit to AndyHitchman/angular.js that referenced this issue Aug 6, 2013
angular.copy previously copied RegExp as an empty object. Change detects
RegExp instance and clones into new RegExp. This change is based on a previous
fix to allow Date to be copied.

Closes angular#3473
IgorMinar pushed a commit that referenced this issue Aug 9, 2013
angular.copy previously copied RegExp as an empty object. Change detects
RegExp instance and clones into new RegExp. This change is based on a previous
fix to allow Date to be copied.

Closes #3473
Closes #3474
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant