We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5aa36a3 commit 278bae2Copy full SHA for 278bae2
1 file changed
spec/license_meta_spec.rb
@@ -58,7 +58,7 @@
58
let(:detected) { Licensee::ProjectFiles::LicenseFile.new(content, 'LICENSE').license }
59
60
if example_url.start_with?('https://github.com/')
61
- example_url.gsub!(%r{\Ahttps://github.com/([\w-]+/[\w-]+)/blob/([\w-]+/\S+)\z}, 'https://raw.githubusercontent.com/\1/\2')
+ example_url.gsub!(%r{\Ahttps://github.com/([\w-]+/[\w\.-]+)/blob/([\w-]+/\S+)\z}, 'https://raw.githubusercontent.com/\1/\2')
62
elsif example_url.start_with?('https://git.savannah.gnu.org/', 'https://git.gnome.org/')
63
example_url.gsub!(%r{/tree/}, '/plain/')
64
elsif example_url.start_with?('https://bitbucket.org/')
0 commit comments