Use allowed slack team name.
This commit is contained in:
parent
cccfede34c
commit
ce61de68ba
1 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,8 @@ class SlackService < Service
|
|||
project_name: project_name
|
||||
))
|
||||
|
||||
credentials = webhook.match(/(\w*).slack.com.*services\/(.*)/)
|
||||
credentials = webhook.match(/([\w-]*).slack.com.*services\/(.*)/)
|
||||
|
||||
if credentials.present?
|
||||
subdomain = credentials[1]
|
||||
token = credentials[2].split("token=").last
|
||||
|
|
Loading…
Reference in a new issue