|
@@ -115,7 +115,8 @@ class BoltService {
|
|
|
async searchResults(command, inputSlack) {
|
|
async searchResults(command, inputSlack) {
|
|
|
const keyword = inputSlack[1];
|
|
const keyword = inputSlack[1];
|
|
|
// remove leading 'search'.
|
|
// remove leading 'search'.
|
|
|
- const replacedCommandText = command.text.replace(inputSlack[0], '');
|
|
|
|
|
|
|
+ inputSlack.shift();
|
|
|
|
|
+ const replacedCommandText = inputSlack.join(' ');
|
|
|
if (keyword == null) {
|
|
if (keyword == null) {
|
|
|
return this.client.chat.postEphemeral({
|
|
return this.client.chat.postEphemeral({
|
|
|
channel: command.channel_id,
|
|
channel: command.channel_id,
|