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 instantCommands = [
[/^ls/, function() {
[/^ls( |$)/, function() {
throw new CommandResult({
msg: intl.str('ls-command')
});
}],
[/^cd/, function() {
[/^cd( |$)/, function() {
throw new CommandResult({
msg: intl.str('cd-command')
});