mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-28 00:40:07 +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
|
@ -7308,6 +7308,11 @@ var Level = Sandbox.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
afterCommandCB: function(command) {
|
afterCommandCB: function(command) {
|
||||||
|
if (command.get('error')) {
|
||||||
|
// dont count errors towards our count
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var matched = false;
|
var matched = false;
|
||||||
_.each(this.commandsThatCount, function(regex) {
|
_.each(this.commandsThatCount, function(regex) {
|
||||||
matched = matched || regex.test(command.get('rawStr'));
|
matched = matched || regex.test(command.get('rawStr'));
|
||||||
|
@ -24039,6 +24044,11 @@ var Level = Sandbox.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
afterCommandCB: function(command) {
|
afterCommandCB: function(command) {
|
||||||
|
if (command.get('error')) {
|
||||||
|
// dont count errors towards our count
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var matched = false;
|
var matched = false;
|
||||||
_.each(this.commandsThatCount, function(regex) {
|
_.each(this.commandsThatCount, function(regex) {
|
||||||
matched = matched || regex.test(command.get('rawStr'));
|
matched = matched || regex.test(command.get('rawStr'));
|
||||||
|
|
1
build/bundle.min.b47122e1.js
Normal file
1
build/bundle.min.b47122e1.js
Normal file
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
2
build/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -412,7 +412,7 @@
|
||||||
For a much easier time perusing the source, see the individual files at:
|
For a much easier time perusing the source, see the individual files at:
|
||||||
https://github.com/pcottle/learnGitBranching
|
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 advantage of github pages: super-easy, simple, slick static hostic.
|
||||||
The downside? No raw logs to parse for analytics, so I have to include
|
The downside? No raw logs to parse for analytics, so I have to include
|
||||||
|
|
|
@ -289,6 +289,11 @@ var Level = Sandbox.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
afterCommandCB: function(command) {
|
afterCommandCB: function(command) {
|
||||||
|
if (command.get('error')) {
|
||||||
|
// dont count errors towards our count
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var matched = false;
|
var matched = false;
|
||||||
_.each(this.commandsThatCount, function(regex) {
|
_.each(this.commandsThatCount, function(regex) {
|
||||||
matched = matched || regex.test(command.get('rawStr'));
|
matched = matched || regex.test(command.get('rawStr'));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue