angular / angular-hint

run-time hinting for AngularJS applications
362 stars 45 forks source link

fix 109: trim spaces to fix one-time expression detection #122

Closed OACDesigns closed 7 years ago

OACDesigns commented 7 years ago

this fixes https://github.com/angular/angular-hint/issues/109 allowing for both {{ :: and {{:: which are valid syntax for one-time bindings.

The same is done in Angular 1.5.8 when detecting one-time binding in string expressions.

googlebot commented 7 years ago

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


OACDesigns commented 7 years ago

I signed it!

googlebot commented 7 years ago

CLAs look good, thanks!

gkalpak commented 7 years ago

@OACDesigns, thanks for fixing this. Could you also add a test for the fix in test/scopes.spec.js?