mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-07 13:14:25 +02:00
Fix space-group in <vcs> <command>
This commit is contained in:
parent
7ae05ce932
commit
d088643f2e
1 changed files with 3 additions and 3 deletions
|
@ -123,11 +123,11 @@ var parse = function(str) {
|
||||||
method = thisMethod;
|
method = thisMethod;
|
||||||
// every valid regex has to have the parts of
|
// every valid regex has to have the parts of
|
||||||
// <vcs> <command> <stuff>
|
// <vcs> <command> <stuff>
|
||||||
// because there are always two spaces
|
// because there are always two space-groups
|
||||||
// before our "stuff" we can simply
|
// before our "stuff" we can simply
|
||||||
// split on spaces and grab everything after
|
// split on space-groups and grab everything after
|
||||||
// the second:
|
// the second:
|
||||||
options = str.split(' ').slice(2).join(' ');
|
options = str.match(/('.*?'|".*?"|\S+)/g).slice(2).join(' ');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue