A curated list of libraries & SDKs for the Bluesky API and AT Protocol
at master 11 lines 273 B view raw
1module ImportHelpers 2 def normalize_repo_url(url) 3 return nil if url.nil? 4 5 url.gsub(%r{^.*://}, 'https://') 6 .gsub(/\.git$/, '') 7 .gsub(%r{tangled\.sh/}, 'tangled.org/') 8 .gsub(%r{tangled\.org/@}, 'tangled.org/') 9 .gsub(/\/$/, '') 10 end 11end