This commit is contained in:
Mike Linksvayer 2017-12-30 14:37:57 -08:00
parent c70e2c14bd
commit 533c63af20
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@ module Licensee
class GitHubProject < Licensee::Projects::Project
# If there's any trailing data (e.g. `.git`) this pattern will ignore it:
# we're going to use the API rather than clone the repo.
GITHUB_REPO_PATTERN = %r{https://github.com/([^\/]+\/([^\/]+(?=\.git)|[^\/]+)).*}
GITHUB_REPO_PATTERN =
%r{https://github.com/([^\/]+\/([^\/]+(?=\.git)|[^\/]+)).*}
class RepoNotFound < StandardError; end