Resolves #608 -- enforce word boundary

This commit is contained in:
Peter Cottle 2019-09-25 10:40:43 +08:00
parent 2784f9b7f3
commit fa5638f3b8

View file

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