fix: get ls and cd with right way

This commit is contained in:
hongarc 2019-09-24 23:43:18 +07:00
parent 1059ba5fa2
commit d8ea1dbb5c

View file

@ -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')
}); });