Skip to content
This repository was archived by the owner on Mar 26, 2023. It is now read-only.

Commit 2843c98

Browse files
committed
Replace tabs with spaces 😠
1 parent 67e703c commit 2843c98

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

proposal.rb

+12-12
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@
3434
org_repository = proposal_url
3535

3636
def raw_url(original_url)
37-
sanitized_url = original_url.sub('https://github.com', '')
38-
parts = sanitized_url
39-
.split('/')
40-
.reject { |e| e.empty? }
41-
organization = parts[0]
42-
repository = parts[1]
43-
branch = parts[3] # skips "blob"
44-
file_path = parts[4..parts.length].join('/')
45-
46-
start = 'https://raw.githubusercontent.com'
47-
48-
"#{start}/#{organization}/#{repository}/#{branch}/#{file_path}"
37+
sanitized_url = original_url.sub('https://github.com', '')
38+
parts = sanitized_url
39+
.split('/')
40+
.reject { |e| e.empty? }
41+
organization = parts[0]
42+
repository = parts[1]
43+
branch = parts[3] # skips "blob"
44+
file_path = parts[4..parts.length].join('/')
45+
46+
start = 'https://raw.githubusercontent.com'
47+
48+
"#{start}/#{organization}/#{repository}/#{branch}/#{file_path}"
4949
end
5050

5151
request = Net::HTTP.get(URI.parse(raw_url(proposal_url)))

0 commit comments

Comments
 (0)