mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 16:38:50 +02:00
fix: get ls
and cd
with right way
This commit is contained in:
parent
1059ba5fa2
commit
d8ea1dbb5c
1 changed files with 2 additions and 2 deletions
|
@ -15,12 +15,12 @@ var Warning = Errors.Warning;
|
||||||
var CommandResult = Errors.CommandResult;
|
var CommandResult = Errors.CommandResult;
|
||||||
|
|
||||||
var instantCommands = [
|
var instantCommands = [
|
||||||
[/^ls/, function() {
|
[/^ls( |$)/, function() {
|
||||||
throw new CommandResult({
|
throw new CommandResult({
|
||||||
msg: intl.str('ls-command')
|
msg: intl.str('ls-command')
|
||||||
});
|
});
|
||||||
}],
|
}],
|
||||||
[/^cd/, function() {
|
[/^cd( |$)/, function() {
|
||||||
throw new CommandResult({
|
throw new CommandResult({
|
||||||
msg: intl.str('cd-command')
|
msg: intl.str('cd-command')
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue