Fix HipChat WebHook URL validation.

This commit is contained in:
rohitsden 2018-01-12 19:36:51 -05:00
parent ec216e69c5
commit 324aca0fad
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ module DiscourseChat
PROVIDER_ENABLED_SETTING = :chat_integration_hipchat_enabled
CHANNEL_PARAMETERS = [
{ key: "name", regex: '^\S+' },
{ key: "webhook_url", regex: 'hipchat\.com', unique: true, hidden: true },
{ key: "webhook_url", regex: 'hipchat\.', unique: true, hidden: true },
{ key: "color", regex: '^(yellow|green|red|purple|gray|random)$' }
]