mirror of
https://github.com/discourse/discourse-chat-integration.git
synced 2025-07-06 14:02:09 +00:00
Fix hipchat colour regex
This commit is contained in:
parent
688afe72d4
commit
ccb8571da5
@ -6,7 +6,7 @@ module DiscourseChat
|
||||
CHANNEL_PARAMETERS = [
|
||||
{ key: "name", regex: '^\S+' },
|
||||
{ key: "webhook_url", regex: 'hipchat\.com', unique: true, hidden: true },
|
||||
{ key: "color", regex: '(yellow|green|red|purple|gray|random)' }
|
||||
{ key: "color", regex: '^(yellow|green|red|purple|gray|random)$' }
|
||||
]
|
||||
|
||||
def self.send_message(url, message)
|
||||
|
Loading…
x
Reference in New Issue
Block a user