Skip to content

Commit

Permalink
robustness
Browse files Browse the repository at this point in the history
  • Loading branch information
errorrik committed Jul 20, 2018
1 parent ed2d6c4 commit db8283f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/parse-directive.js
Expand Up @@ -29,7 +29,7 @@ var directiveParsers = {
value: readUnaryExpr(walker)
};

if (walker.match(/\s+trackby\s+/ig, 1)) {
if (walker.match(/\s*trackby\s+/ig, 1)) {
var start = walker.index;
directive.trackBy = readAccessor(walker);
directive.trackBy.raw = walker.cut(start, walker.index);
Expand Down

0 comments on commit db8283f

Please sign in to comment.