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

fix(testability): findBindings should escape binding expressions before ... #9600

Closed
wants to merge 1 commit into from

Conversation

juliemr
Copy link
Member

@juliemr juliemr commented Oct 13, 2014

...performing regexp

Move the function to escape regexps to Angular.js, fix the link, and use it in
the $$testability service.

See #9595

…re performing regexp

Move the function to escape regexps to Angular.js, fix the link, and use it in
the $$testability service.

See angular#9595
@btford
Copy link
Contributor

btford commented Oct 14, 2014

the first line of the commit message is too long, otherwise LGTM

@juliemr
Copy link
Member Author

juliemr commented Oct 14, 2014

I thought the limit was 100 for everything now?
On Oct 13, 2014 11:01 PM, "Brian Ford" notifications@github.com wrote:

the first line of the commit message is too long, otherwise LGTM


Reply to this email directly or view it on GitHub
#9600 (comment).

@@ -54,6 +54,7 @@
"isBoolean": false,
"isPromiseLike": false,
"trim": false,
"escapeForRegexp": true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be false here. To tell JSHint that in general this is readonly constant.
That is why it is overridden in Angular.js below to true where we actually set the value of it.

@juliemr juliemr closed this in 02aa4f4 Oct 14, 2014
@petebacondarwin
Copy link
Member

I shortened the commit message :-) and added a couple of tests for situations where there is a filter | symbol in the binding or the query.

@juliemr
Copy link
Member Author

juliemr commented Oct 14, 2014

Thanks pete!

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

Successfully merging this pull request may close these issues.

None yet

4 participants