diff --git a/send.go b/send.go index 146c570..1e7e069 100644 --- a/send.go +++ b/send.go @@ -82,8 +82,10 @@ func isValidWebhookURL(webhookURL string) (bool, error) { return false, err } // only pass MS teams webhook URLs - hasPrefix := strings.HasPrefix(webhookURL, "https://outlook.office.com/webhook/") - if !hasPrefix { + switch { + case strings.HasPrefix(webhookURL, "https://outlook.office.com/webhook/"): + case strings.HasPrefix(webhookURL, "https://outlook.office365.com/webhook/"): + default: err = errors.New("unvalid ms teams webhook url") return false, err }