Merge pull request #610 from Hongarc/fix/command

fix: get `ls` and `cd` with right way
This commit is contained in:
Peter Cottle 2019-10-01 12:49:15 -07:00 committed by GitHub
commit fde456d369
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,12 +15,12 @@ var Warning = Errors.Warning;
var CommandResult = Errors.CommandResult;
var instantCommands = [
[/^ls\b/, function() {
[/^ls( |$)/, function() {
throw new CommandResult({
msg: intl.str('ls-command')
});
}],
[/^cd\b/, function() {
[/^cd( |$)/, function() {
throw new CommandResult({
msg: intl.str('cd-command')
});