mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
echo command cute
This commit is contained in:
parent
1f6189943a
commit
2bee3d357a
6 changed files with 119 additions and 122 deletions
|
@ -33,6 +33,13 @@ var instantCommands = [
|
|||
throw new CommandResult({
|
||||
msg: 'Commands combined!'
|
||||
});
|
||||
}],
|
||||
[/^echo "([a-zA-Z0-9 ]+)"$|^echo ([a-zA-Z0-9 ]+)$/, function(bits) {
|
||||
var msg = bits[1] || bits[2];
|
||||
console.log(bits, msg);
|
||||
throw new CommandResult({
|
||||
msg: msg
|
||||
});
|
||||
}]
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue