Fix space-group in <vcs> <command>

This commit is contained in:
Hongarc 2018-12-01 23:11:29 +07:00
parent 7ae05ce932
commit d088643f2e

View file

@ -123,11 +123,11 @@ var parse = function(str) {
method = thisMethod;
// every valid regex has to have the parts of
// <vcs> <command> <stuff>
// because there are always two spaces
// because there are always two space-groups
// before our "stuff" we can simply
// split on spaces and grab everything after
// split on space-groups and grab everything after
// the second:
options = str.split(' ').slice(2).join(' ');
options = str.match(/('.*?'|".*?"|\S+)/g).slice(2).join(' ');
}
});
});