diff --git a/cmd/brew-aspell-dictionaries.rb b/cmd/brew-aspell-dictionaries.rb index 26056073329..4fe7f175b51 100755 --- a/cmd/brew-aspell-dictionaries.rb +++ b/cmd/brew-aspell-dictionaries.rb @@ -10,7 +10,7 @@ dict_mirror = "https://ftpmirror.gnu.org/aspell/dict" languages = {} -open("#{dict_url}/0index.html") do |content| +URI.parse("#{dict_url}/0index.html").open do |content| content.each_line do |line| break if %r{^