lib/licensee.rb in licensee-9.14.1 vs lib/licensee.rb in licensee-9.15.0

- old
+ new

@@ -35,10 +35,10 @@ def license(path) Licensee.project(path).license end def project(path, **args) - if path =~ %r{\Ahttps://github.com} + if %r{\Ahttps://github.com}.match?(path) Licensee::Projects::GitHubProject.new(path, **args) else Licensee::Projects::GitProject.new(path, **args) end rescue Licensee::Projects::GitProject::InvalidRepository