From e81fa3220de51350592e50b2fa3e0dc9425d43f8 Mon Sep 17 00:00:00 2001 From: David Lu Date: Fri, 20 May 2016 14:47:10 -0400 Subject: Added validation for command triggers (#3068) --- webapp/i18n/en.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'webapp/i18n/en.json') diff --git a/webapp/i18n/en.json b/webapp/i18n/en.json index bff8ab8aa..fcbfc7cbb 100644 --- a/webapp/i18n/en.json +++ b/webapp/i18n/en.json @@ -47,10 +47,13 @@ "add_command.method.help": "The type of command request issued to the Request URL.", "add_command.method.post": "POST", "add_command.trigger": "Command Trigger Word", - "add_command.trigger.help1": "Examples: /patient, /client, /employee", - "add_command.trigger.help2": "Reserved: /echo, /join, /logout, /me, /shrug", - "add_command.trigger.placeholder": "Command trigger e.g. \"hello\" not including the slash", + "add_command.trigger.help1": "Examples: patient, client, employee", + "add_command.trigger.help2": "Reserved: echo, join, logout, me, shrug", + "add_command.trigger.placeholder": "Command trigger e.g. \"hello\"", "add_command.triggerRequired": "A trigger word is required", + "add_command.triggerInvalidSlash": "A trigger word cannot begin with a /", + "add_command.triggerInvalidSpace": "A trigger word must not contain spaces", + "add_command.triggerInvalidLength": "A trigger word must contain between {min} and {max} characters", "add_command.url": "Request URL", "add_command.url.help": "The callback URL to receive the HTTP POST or GET event request when the slash command is run.", "add_command.url.placeholder": "Must start with http:// or https://", -- cgit v1.2.3-1-g7c22