lib/danger/ci_source/buildkite.rb in danger-9.1.0 vs lib/danger/ci_source/buildkite.rb in danger-9.2.0
- old
+ new
@@ -38,10 +38,10 @@
def initialize(env)
self.repo_url = env["BUILDKITE_REPO"]
self.pull_request_id = env["BUILDKITE_PULL_REQUEST"]
- repo_matches = self.repo_url.match(%r{([\/:])([^\/]+\/[^\/]+?)(\.git$|$)})
+ repo_matches = self.repo_url.match(%r{([/:])([^/]+/[^/]+?)(\.git$|$)})
self.repo_slug = repo_matches[2] unless repo_matches.nil?
end
def supported_request_sources
@supported_request_sources ||= [Danger::RequestSources::GitHub, Danger::RequestSources::GitLab, Danger::RequestSources::BitbucketServer]