Skip to content

Commit 3f5208a

Browse files
authored
Add trailing / in url match
1 parent a51201d commit 3f5208a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/license_meta_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
if example_url.start_with?('https://github.com/')
5050
example_url.gsub!(%r{\Ahttps://github.com/([\w-]+/[\w.-]+)/blob/(\S+)\z}, 'https://raw.githubusercontent.com/\1/\2')
51-
elsif example_url.start_with?('https://git.savannah.gnu.org/', 'https://git.gnome.org/', 'https://code.qt.io')
51+
elsif example_url.start_with?('https://git.savannah.gnu.org/', 'https://git.gnome.org/', 'https://code.qt.io/')
5252
example_url.gsub!(%r{/tree/}, '/plain/')
5353
elsif example_url.start_with?('https://bitbucket.org/')
5454
example_url.gsub!(%r{/src/}, '/raw/')

0 commit comments

Comments
 (0)