aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/directive/ngRepeat.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/directive/ngRepeat.js b/src/directive/ngRepeat.js
index efa27153..82f8b9c7 100644
--- a/src/directive/ngRepeat.js
+++ b/src/directive/ngRepeat.js
@@ -73,10 +73,10 @@ var ngRepeatDirective = ngDirective({
}
lhs = match[1];
rhs = match[2];
- match = lhs.match(/^([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\)$/);
+ match = lhs.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/);
if (!match) {
throw Error("'item' in 'item in collection' should be identifier or (key, value) but got '" +
- keyValue + "'.");
+ lhs + "'.");
}
valueIdent = match[3] || match[1];
keyIdent = match[2];