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

@ -7308,6 +7308,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'));
@ -24039,6 +24044,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'));

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
build/bundle.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -412,7 +412,7 @@
For a much easier time perusing the source, see the individual files at:
https://github.com/pcottle/learnGitBranching
-->
<script src="build/bundle.min.c757faa4.js"></script>
<script src="build/bundle.min.b47122e1.js"></script>
<!-- The advantage of github pages: super-easy, simple, slick static hostic.
The downside? No raw logs to parse for analytics, so I have to include

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'));