From 00ec1f486a3fd1dc523cdf242cfb1c78baaa407e Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 26 Jan 2021 17:45:49 +0000 Subject: [PATCH] FIX: Relax validation for teams webhook urls to support custom domains (#56) --- lib/discourse_chat/provider/teams/teams_provider.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/discourse_chat/provider/teams/teams_provider.rb b/lib/discourse_chat/provider/teams/teams_provider.rb index 26525ce..d1824f4 100644 --- a/lib/discourse_chat/provider/teams/teams_provider.rb +++ b/lib/discourse_chat/provider/teams/teams_provider.rb @@ -5,7 +5,7 @@ module DiscourseChat::Provider::TeamsProvider PROVIDER_ENABLED_SETTING = :chat_integration_teams_enabled CHANNEL_PARAMETERS = [ { key: "name", regex: '^\S+$', unique: true }, - { key: "webhook_url", regex: '^https:\/\/outlook\.office\.com\/webhook\/[A-Za-z0-9\-@\/]+\S+$', unique: true, hidden: true } + { key: "webhook_url", regex: '^https:\/\/\S+$', unique: true, hidden: true } ] def self.trigger_notification(post, channel, rule)