mirror of https://github.com/licensee/licensee.git
allow repos to have . in name
This commit is contained in:
parent
e32df8c033
commit
c70e2c14bd
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue