From 3f5208ac0da4a3e9336013eadb0ff7f3e84e277b Mon Sep 17 00:00:00 2001 From: Mike Linksvayer Date: Sat, 13 Jul 2024 22:32:01 -0700 Subject: [PATCH] Add trailing / in url match --- spec/license_meta_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/license_meta_spec.rb b/spec/license_meta_spec.rb index 4e624ce..21d9a4f 100644 --- a/spec/license_meta_spec.rb +++ b/spec/license_meta_spec.rb @@ -48,7 +48,7 @@ describe 'license meta' do 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/')