allow repos to have . in name

This commit is contained in:
Mike Linksvayer 2017-12-30 14:34:08 -08:00
parent e32df8c033
commit c70e2c14bd
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ 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/([^\/]+\/[^\/\.]+).*}
GITHUB_REPO_PATTERN = %r{https://github.com/([^\/]+\/([^\/]+(?=\.git)|[^\/]+)).*}
class RepoNotFound < StandardError; end