From d8ea1dbb5c50b0143e7044e7be5b04ef1d848491 Mon Sep 17 00:00:00 2001 From: hongarc Date: Tue, 24 Sep 2019 23:43:18 +0700 Subject: [PATCH] fix: get `ls` and `cd` with right way --- src/js/sandbox/commands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/sandbox/commands.js b/src/js/sandbox/commands.js index 7f4e359d..953d4084 100644 --- a/src/js/sandbox/commands.js +++ b/src/js/sandbox/commands.js @@ -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') });