Sha256: b484b8b3ae481c3c1500a0027357c7399bbf913298852c13fb70cad23466e750
Contents?: true
Size: 365 Bytes
Versions: 6
Compression:
Stored size: 365 Bytes
Contents
module Synvert module Utils class << self def format_url(url) convert_to_github_raw_url(url) end private def convert_to_github_raw_url(url) if url.include?('//github.com/') url = url.sub('//github.com/', '//raw.githubusercontent.com/').sub('/blob/', '/') end url end end end end
Version data entries
6 entries across 6 versions & 1 rubygems