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

fix(angular.equals): regular expressions are never considered equal #2715

Closed
wants to merge 1 commit into from
Closed

fix(angular.equals): regular expressions are never considered equal #2715

wants to merge 1 commit into from

Conversation

bripkens
Copy link
Contributor

Regular expression objects are never considered to be equal when using
'angular.equals'. Dirty checking therefore fails to recognize a
property modification.

Closes #2685

Regular expression objects are never considered to be equal when using
'angular.equals'. Dirty checking therefore fails to recognize a
property modification.

Closes #2685
@petebacondarwin
Copy link
Contributor

@bripkens - you have two things going on here. A "fix" for angular.equals and a "feature" for the new isRegExp function. Can you split this PR into two separate ones, with separate commits. Once you have done that please ensure that you have signed the CLA if you haven't already - see http://docs.angularjs.org/misc/contribute.
I am going to close this for now - please open the 2 new PRs.

@petebacondarwin
Copy link
Contributor

The E2E tests keep timing out but I think this is an issue with the CI server rather than this patch: http://ci.angularjs.org/job/angular.js-pete/174/console

@bripkens
Copy link
Contributor Author

Tried it again (locally) and did not run into any issues, so I would concur that his an issue with Jenkins, but of course I can understand your wish to verify this yourself :-).

@IgorMinar
Copy link
Contributor

what happened here? I don't think that this fix got merged.

I'm closing #2729 in favor of this fix since this fix contains changes to equals fn.

we need to change this as to not expose the utility fn as public api (please make sure that the @ngdoc annotation is removed so that we don't document this api.

@IgorMinar
Copy link
Contributor

nevermind. I merged this in as commits referenced from #2729

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 this pull request may close these issues.

Dirty checking not working on RegExp objects?
3 participants