diff options
| author | Ajay Roopakalu | 2014-01-04 02:17:21 -0500 |
|---|---|---|
| committer | Jeff Cross | 2014-01-10 09:50:28 -0800 |
| commit | 8ace8073fd1ad2fab8291246fe262d11b8c0f211 (patch) | |
| tree | 8fe9ae846d136b523214335f66836f3d74d845e0 /src/ng/directive/select.js | |
| parent | 43a2f3d0bf435e3626cd679caff4281cfb3415bd (diff) | |
| download | angular.js-8ace8073fd1ad2fab8291246fe262d11b8c0f211.tar.bz2 | |
docs(select): update regexp grouping cheat-sheat
Update the regexp grouping comment to reflect the changes needed for
multiline expressions in ng-options for <select>.
Closes #5602
Diffstat (limited to 'src/ng/directive/select.js')
| -rw-r--r-- | src/ng/directive/select.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/directive/select.js b/src/ng/directive/select.js index 62e460c5..c74791c8 100644 --- a/src/ng/directive/select.js +++ b/src/ng/directive/select.js @@ -128,7 +128,7 @@ var ngOptionsMinErr = minErr('ngOptions'); var ngOptionsDirective = valueFn({ terminal: true }); // jshint maxlen: false var selectDirective = ['$compile', '$parse', function($compile, $parse) { - //0000111110000000000022220000000000000000000000333300000000000000444444444444444000000000555555555555555000000066666666666666600000000000000007777000000000000000000088888 + //000011111111110000000000022222222220000000000000000000003333333333000000000000004444444444444440000000005555555555555550000000666666666666666000000000000000777777777700000000000000000008888888888 var NG_OPTIONS_REGEXP = /^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/, nullModelCtrl = {$setViewValue: noop}; // jshint maxlen: 100 |
