mirror of
https://github.com/discourse/discourse-chat-integration.git
synced 2025-07-07 22:32:12 +00:00
Update HipChat WebHook URL validation to check for anything that isn't space.
This commit is contained in:
parent
324aca0fad
commit
79288fc254
@ -5,7 +5,7 @@ module DiscourseChat
|
|||||||
PROVIDER_ENABLED_SETTING = :chat_integration_hipchat_enabled
|
PROVIDER_ENABLED_SETTING = :chat_integration_hipchat_enabled
|
||||||
CHANNEL_PARAMETERS = [
|
CHANNEL_PARAMETERS = [
|
||||||
{ key: "name", regex: '^\S+' },
|
{ key: "name", regex: '^\S+' },
|
||||||
{ key: "webhook_url", regex: 'hipchat\.', unique: true, hidden: true },
|
{ key: "webhook_url", regex: '^\S+$', unique: true, hidden: true },
|
||||||
{ key: "color", regex: '^(yellow|green|red|purple|gray|random)$' }
|
{ key: "color", regex: '^(yellow|green|red|purple|gray|random)$' }
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user