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

Commit 8ace807

Browse files
jrupacjeffbcross
authored andcommitted
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
1 parent 43a2f3d commit 8ace807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/directive/select.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ var ngOptionsMinErr = minErr('ngOptions');
128128
var ngOptionsDirective = valueFn({ terminal: true });
129129
// jshint maxlen: false
130130
var selectDirective = ['$compile', '$parse', function($compile, $parse) {
131-
//0000111110000000000022220000000000000000000000333300000000000000444444444444444000000000555555555555555000000066666666666666600000000000000007777000000000000000000088888
131+
//000011111111110000000000022222222220000000000000000000003333333333000000000000004444444444444440000000005555555555555550000000666666666666666000000000000000777777777700000000000000000008888888888
132132
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]+?))?$/,
133133
nullModelCtrl = {$setViewValue: noop};
134134
// jshint maxlen: 100

0 commit comments

Comments
 (0)