mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
Dont count typo errors Issue #60
This commit is contained in:
parent
fab9bade1e
commit
943aa12d87
6 changed files with 18 additions and 3 deletions
|
@ -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'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue