Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
transmission-nightly.rb: replace scan.flatten.first with match (#9710)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorgalvao committed Oct 5, 2020
1 parent 631e876 commit a1b952c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Casks/transmission-nightly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
url do
require "open-uri"
base_url = "https://build.transmissionbt.com/job/trunk-mac/lastSuccessfulBuild/artifact/release/"
file = URI(base_url).open.read.scan(/href="([^"]+.dmg)"/).flatten.first
file = URI(base_url).read[/href="([^"]+.dmg)"/, 1]
"#{base_url}#{file}"
end
name "Transmission"
Expand Down

0 comments on commit a1b952c

Please sign in to comment.