Fix hipchat colour regex

This commit is contained in:
David Taylor 2017-08-16 15:51:46 +03:00
parent 688afe72d4
commit ccb8571da5
1 changed files with 1 additions and 1 deletions

View File

@ -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)