Skip to content

Commit

Permalink
Add trailing / in url match
Browse files Browse the repository at this point in the history
  • Loading branch information
mlinksva committed Jul 14, 2024
1 parent a51201d commit 3f5208a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/license_meta_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

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

1 comment on commit 3f5208a

@thuthu24
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0x99b40150f3bcca887a7dc13f0e5110345277a859

Please sign in to comment.