From ccb8571da533ee67c6cb3f92c5bdf5447a41e288 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 16 Aug 2017 15:51:46 +0300 Subject: [PATCH] Fix hipchat colour regex --- lib/discourse_chat/provider/hipchat/hipchat_provider.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/discourse_chat/provider/hipchat/hipchat_provider.rb b/lib/discourse_chat/provider/hipchat/hipchat_provider.rb index de61bc8..c4a4899 100644 --- a/lib/discourse_chat/provider/hipchat/hipchat_provider.rb +++ b/lib/discourse_chat/provider/hipchat/hipchat_provider.rb @@ -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)