mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-26 07:58:34 +02:00
Allow for multiple spaces in git commands Issue #44
This commit is contained in:
parent
c5a3f866ab
commit
a2e89f592d
8 changed files with 56 additions and 54 deletions
|
@ -76,4 +76,6 @@ Or reported an issue that was successfully closed!
|
|||
* "ortin"
|
||||
* Dave Myron
|
||||
* "chosenken"
|
||||
* Mael P ("maelp")
|
||||
* "flying-sheep"
|
||||
|
||||
|
|
|
@ -13145,18 +13145,18 @@ var instantCommands = [
|
|||
var regexMap = {
|
||||
// ($|\s) means that we either have to end the string
|
||||
// after the command or there needs to be a space for options
|
||||
'git commit': /^git commit($|\s)/,
|
||||
'git add': /^git add($|\s)/,
|
||||
'git checkout': /^git checkout($|\s)/,
|
||||
'git rebase': /^git rebase($|\s)/,
|
||||
'git reset': /^git reset($|\s)/,
|
||||
'git branch': /^git branch($|\s)/,
|
||||
'git revert': /^git revert($|\s)/,
|
||||
'git log': /^git log($|\s)/,
|
||||
'git merge': /^git merge($|\s)/,
|
||||
'git show': /^git show($|\s)/,
|
||||
'git status': /^git status($|\s)/,
|
||||
'git cherry-pick': /^git cherry-pick($|\s)/
|
||||
'git commit': /^git +commit($|\s)/,
|
||||
'git add': /^git +add($|\s)/,
|
||||
'git checkout': /^git +checkout($|\s)/,
|
||||
'git rebase': /^git +rebase($|\s)/,
|
||||
'git reset': /^git +reset($|\s)/,
|
||||
'git branch': /^git +branch($|\s)/,
|
||||
'git revert': /^git +revert($|\s)/,
|
||||
'git log': /^git +log($|\s)/,
|
||||
'git merge': /^git +merge($|\s)/,
|
||||
'git show': /^git +show($|\s)/,
|
||||
'git status': /^git +status($|\s)/,
|
||||
'git cherry-pick': /^git +cherry-pick($|\s)/
|
||||
};
|
||||
|
||||
var parse = function(str) {
|
||||
|
@ -13455,7 +13455,7 @@ var instantCommands = [
|
|||
|
||||
var regexMap = {
|
||||
'reset solved': /^reset solved($|\s)/,
|
||||
'help': /^help( general)?$|^\?$/,
|
||||
'help': /^help( +general)?$|^\?$/,
|
||||
'reset': /^reset$/,
|
||||
'delay': /^delay (\d+)$/,
|
||||
'clear': /^clear($|\s)/,
|
||||
|
@ -13464,10 +13464,10 @@ var regexMap = {
|
|||
'level': /^level\s?([a-zA-Z0-9]*)/,
|
||||
'levels': /^levels($|\s)/,
|
||||
'mobileAlert': /^mobile alert($|\s)/,
|
||||
'build level': /^build level($|\s)/,
|
||||
'export tree': /^export tree$/,
|
||||
'import tree': /^import tree$/,
|
||||
'import level': /^import level$/,
|
||||
'build level': /^build +level($|\s)/,
|
||||
'export tree': /^export +tree$/,
|
||||
'import tree': /^import +tree$/,
|
||||
'import level': /^import +level$/,
|
||||
'undo': /^undo($|\s)/
|
||||
};
|
||||
|
||||
|
@ -19005,18 +19005,18 @@ var instantCommands = [
|
|||
var regexMap = {
|
||||
// ($|\s) means that we either have to end the string
|
||||
// after the command or there needs to be a space for options
|
||||
'git commit': /^git commit($|\s)/,
|
||||
'git add': /^git add($|\s)/,
|
||||
'git checkout': /^git checkout($|\s)/,
|
||||
'git rebase': /^git rebase($|\s)/,
|
||||
'git reset': /^git reset($|\s)/,
|
||||
'git branch': /^git branch($|\s)/,
|
||||
'git revert': /^git revert($|\s)/,
|
||||
'git log': /^git log($|\s)/,
|
||||
'git merge': /^git merge($|\s)/,
|
||||
'git show': /^git show($|\s)/,
|
||||
'git status': /^git status($|\s)/,
|
||||
'git cherry-pick': /^git cherry-pick($|\s)/
|
||||
'git commit': /^git +commit($|\s)/,
|
||||
'git add': /^git +add($|\s)/,
|
||||
'git checkout': /^git +checkout($|\s)/,
|
||||
'git rebase': /^git +rebase($|\s)/,
|
||||
'git reset': /^git +reset($|\s)/,
|
||||
'git branch': /^git +branch($|\s)/,
|
||||
'git revert': /^git +revert($|\s)/,
|
||||
'git log': /^git +log($|\s)/,
|
||||
'git merge': /^git +merge($|\s)/,
|
||||
'git show': /^git +show($|\s)/,
|
||||
'git status': /^git +status($|\s)/,
|
||||
'git cherry-pick': /^git +cherry-pick($|\s)/
|
||||
};
|
||||
|
||||
var parse = function(str) {
|
||||
|
@ -22880,7 +22880,7 @@ var instantCommands = [
|
|||
|
||||
var regexMap = {
|
||||
'reset solved': /^reset solved($|\s)/,
|
||||
'help': /^help( general)?$|^\?$/,
|
||||
'help': /^help( +general)?$|^\?$/,
|
||||
'reset': /^reset$/,
|
||||
'delay': /^delay (\d+)$/,
|
||||
'clear': /^clear($|\s)/,
|
||||
|
@ -22889,10 +22889,10 @@ var regexMap = {
|
|||
'level': /^level\s?([a-zA-Z0-9]*)/,
|
||||
'levels': /^levels($|\s)/,
|
||||
'mobileAlert': /^mobile alert($|\s)/,
|
||||
'build level': /^build level($|\s)/,
|
||||
'export tree': /^export tree$/,
|
||||
'import tree': /^import tree$/,
|
||||
'import level': /^import level$/,
|
||||
'build level': /^build +level($|\s)/,
|
||||
'export tree': /^export +tree$/,
|
||||
'import tree': /^import +tree$/,
|
||||
'import level': /^import +level$/,
|
||||
'undo': /^undo($|\s)/
|
||||
};
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
1
build/bundle.min.ad2242cf.js
Normal file
1
build/bundle.min.ad2242cf.js
Normal file
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
|
@ -409,7 +409,7 @@
|
|||
For a much easier time perusing the source, see the individual files at:
|
||||
https://github.com/pcottle/learnGitBranching
|
||||
-->
|
||||
<script src="build/bundle.min.6040aa35.js"></script>
|
||||
<script src="build/bundle.min.ad2242cf.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
|
||||
|
|
|
@ -49,18 +49,18 @@ var instantCommands = [
|
|||
var regexMap = {
|
||||
// ($|\s) means that we either have to end the string
|
||||
// after the command or there needs to be a space for options
|
||||
'git commit': /^git commit($|\s)/,
|
||||
'git add': /^git add($|\s)/,
|
||||
'git checkout': /^git checkout($|\s)/,
|
||||
'git rebase': /^git rebase($|\s)/,
|
||||
'git reset': /^git reset($|\s)/,
|
||||
'git branch': /^git branch($|\s)/,
|
||||
'git revert': /^git revert($|\s)/,
|
||||
'git log': /^git log($|\s)/,
|
||||
'git merge': /^git merge($|\s)/,
|
||||
'git show': /^git show($|\s)/,
|
||||
'git status': /^git status($|\s)/,
|
||||
'git cherry-pick': /^git cherry-pick($|\s)/
|
||||
'git commit': /^git +commit($|\s)/,
|
||||
'git add': /^git +add($|\s)/,
|
||||
'git checkout': /^git +checkout($|\s)/,
|
||||
'git rebase': /^git +rebase($|\s)/,
|
||||
'git reset': /^git +reset($|\s)/,
|
||||
'git branch': /^git +branch($|\s)/,
|
||||
'git revert': /^git +revert($|\s)/,
|
||||
'git log': /^git +log($|\s)/,
|
||||
'git merge': /^git +merge($|\s)/,
|
||||
'git show': /^git +show($|\s)/,
|
||||
'git status': /^git +status($|\s)/,
|
||||
'git cherry-pick': /^git +cherry-pick($|\s)/
|
||||
};
|
||||
|
||||
var parse = function(str) {
|
||||
|
|
|
@ -45,7 +45,7 @@ var instantCommands = [
|
|||
|
||||
var regexMap = {
|
||||
'reset solved': /^reset solved($|\s)/,
|
||||
'help': /^help( general)?$|^\?$/,
|
||||
'help': /^help( +general)?$|^\?$/,
|
||||
'reset': /^reset$/,
|
||||
'delay': /^delay (\d+)$/,
|
||||
'clear': /^clear($|\s)/,
|
||||
|
@ -54,10 +54,10 @@ var regexMap = {
|
|||
'level': /^level\s?([a-zA-Z0-9]*)/,
|
||||
'levels': /^levels($|\s)/,
|
||||
'mobileAlert': /^mobile alert($|\s)/,
|
||||
'build level': /^build level($|\s)/,
|
||||
'export tree': /^export tree$/,
|
||||
'import tree': /^import tree$/,
|
||||
'import level': /^import level$/,
|
||||
'build level': /^build +level($|\s)/,
|
||||
'export tree': /^export +tree$/,
|
||||
'import tree': /^import +tree$/,
|
||||
'import level': /^import +level$/,
|
||||
'undo': /^undo($|\s)/
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue