aboutsummaryrefslogtreecommitdiffstats
path: root/src/directive/ngRepeat.js
diff options
context:
space:
mode:
authorIgor Minar2012-03-17 15:57:55 -0700
committerIgor Minar2012-03-17 15:57:55 -0700
commit935c1018da05dbf3124b2dd33619c4a3c82d7a2a (patch)
treee221f3c1597ff292ffa9483495701a0b92a251c8 /src/directive/ngRepeat.js
parent78a6291666d55c8b1415e8090c7e6a35ae95df8b (diff)
downloadangular.js-935c1018da05dbf3124b2dd33619c4a3c82d7a2a.tar.bz2
fix(ngRepeat): correct variable reference in error message
Closese #803
Diffstat (limited to 'src/directive/ngRepeat.js')
-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];