mirror of
https://github.com/discourse/discourse-chat-integration.git
synced 2025-03-08 18:59:38 +00:00
Adjust gitter regex
This commit is contained in:
parent
9f327e74e8
commit
9d99f5659a
@ -5,7 +5,7 @@ module DiscourseChat
|
|||||||
PROVIDER_ENABLED_SETTING = :chat_integration_gitter_enabled
|
PROVIDER_ENABLED_SETTING = :chat_integration_gitter_enabled
|
||||||
CHANNEL_PARAMETERS = [
|
CHANNEL_PARAMETERS = [
|
||||||
{ key: "name", regex: '^\S+$', unique: true },
|
{ 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)
|
def self.trigger_notification(post, channel)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user