lib/danger/ci_source/bitrise.rb in danger-5.5.8 vs lib/danger/ci_source/bitrise.rb in danger-5.5.9

- old
+ new

@@ -38,10 +38,10 @@ def initialize(env) self.pull_request_id = env["BITRISE_PULL_REQUEST"] self.repo_url = env["GIT_REPOSITORY_URL"] - 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 end end