mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-15 23:38:23 +02:00
Resolves #608 -- enforce word boundary
This commit is contained in:
parent
2784f9b7f3
commit
fa5638f3b8
1 changed files with 2 additions and 2 deletions
|
@ -15,12 +15,12 @@ var Warning = Errors.Warning;
|
||||||
var CommandResult = Errors.CommandResult;
|
var CommandResult = Errors.CommandResult;
|
||||||
|
|
||||||
var instantCommands = [
|
var instantCommands = [
|
||||||
[/^ls/, function() {
|
[/^ls\b/, function() {
|
||||||
throw new CommandResult({
|
throw new CommandResult({
|
||||||
msg: intl.str('ls-command')
|
msg: intl.str('ls-command')
|
||||||
});
|
});
|
||||||
}],
|
}],
|
||||||
[/^cd/, function() {
|
[/^cd\b/, function() {
|
||||||
throw new CommandResult({
|
throw new CommandResult({
|
||||||
msg: intl.str('cd-command')
|
msg: intl.str('cd-command')
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue