Skip to content

Commit

Permalink
GovSlack apps can use the slack-gov.com domain
Browse files Browse the repository at this point in the history
Signed-off-by: Aniruddh <[email protected]>
  • Loading branch information
Noir01 committed Nov 16, 2023
1 parent 45823a6 commit 84c17ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ object ConfigIndexingActions {

@Suppress("UnusedPrivateMember")
private fun validateSlackConfig(slack: Slack, user: User?) {
require(slack.url.contains(Regex("https://hooks\\.slack\\.com/services"))) {
require(slack.url.contains(Regex("https://hooks\\.(?:gov-)?slack\\.com/services"))) {
"Wrong Slack url. Should contain \"hooks.slack.com/services/\""
}
}
Expand Down

0 comments on commit 84c17ed

Please sign in to comment.