Dont count typo errors Issue #60

This commit is contained in:
Peter Cottle 2013-02-25 22:16:11 -08:00
parent fab9bade1e
commit 943aa12d87
6 changed files with 18 additions and 3 deletions

View file

@ -289,6 +289,11 @@ var Level = Sandbox.extend({
},
afterCommandCB: function(command) {
if (command.get('error')) {
// dont count errors towards our count
return;
}
var matched = false;
_.each(this.commandsThatCount, function(regex) {
matched = matched || regex.test(command.get('rawStr'));