Skip to content

Commit

Permalink
Match: Fixed this.restoreDepth call possibly (issue #433)
Browse files Browse the repository at this point in the history
  • Loading branch information
miripiruni committed May 3, 2017
1 parent 8f00349 commit 0ed5efd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/bemxjst/match.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,11 @@ Match.prototype.exec = function(context) {
}
}

if (i === this.count)
if (i === this.count) {
this.restoreDepth(save);

return context.ctx[this.modeName];
}

var oldMask = mask;
var oldMatch = this.bemxjst.match;
Expand Down

0 comments on commit 0ed5efd

Please sign in to comment.