mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-18 00:28:42 +02:00
Merge pull request #610 from Hongarc/fix/command
fix: get `ls` and `cd` with right way
This commit is contained in:
commit
fde456d369
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\b/, function() {
|
[/^ls( |$)/, function() {
|
||||||
throw new CommandResult({
|
throw new CommandResult({
|
||||||
msg: intl.str('ls-command')
|
msg: intl.str('ls-command')
|
||||||
});
|
});
|
||||||
}],
|
}],
|
||||||
[/^cd\b/, 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