diff options
-rw-r--r-- | webapp/components/integrations/components/add_command.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webapp/components/integrations/components/add_command.jsx b/webapp/components/integrations/components/add_command.jsx index 55fe9e121..d71fb7c3f 100644 --- a/webapp/components/integrations/components/add_command.jsx +++ b/webapp/components/integrations/components/add_command.jsx @@ -69,10 +69,15 @@ export default class AddCommand extends React.Component { clientError: '' }); + let triggerWord = this.state.trigger.trim().toLowerCase(); + if (triggerWord.indexOf('/') === 0) { + triggerWord = triggerWord.substr(1); + } + const command = { display_name: this.state.displayName, description: this.state.description, - trigger: this.state.trigger.trim().toLowerCase(), + trigger: triggerWord, url: this.state.url.trim(), method: this.state.method, username: this.state.username, |