Skip to content

Commit 278bae2

Browse files
committed
test handle repo name with . in it
1 parent 5aa36a3 commit 278bae2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spec/license_meta_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
let(:detected) { Licensee::ProjectFiles::LicenseFile.new(content, 'LICENSE').license }
5959

6060
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')
61+
example_url.gsub!(%r{\Ahttps://github.com/([\w-]+/[\w\.-]+)/blob/([\w-]+/\S+)\z}, 'https://raw.githubusercontent.com/\1/\2')
6262
elsif example_url.start_with?('https://git.savannah.gnu.org/', 'https://git.gnome.org/')
6363
example_url.gsub!(%r{/tree/}, '/plain/')
6464
elsif example_url.start_with?('https://bitbucket.org/')

0 commit comments

Comments
 (0)