Adjust gitter regex

This commit is contained in:
David Taylor 2017-08-31 01:51:28 +01:00
parent 9f327e74e8
commit 9d99f5659a
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ module DiscourseChat
PROVIDER_ENABLED_SETTING = :chat_integration_gitter_enabled
CHANNEL_PARAMETERS = [
{ key: "name", regex: '^\S+$', unique: true },
{ key: "webhook_url", regex: '^https://webhooks.gitter.im/e/\S+$', unique: true, hidden: true }
{ key: "webhook_url", regex: '^https://webhooks\.gitter\.im/e/\S+$', unique: true, hidden: true }
]
def self.trigger_notification(post, channel)