diff --git a/cmd/brew-aspell-dictionaries.rb b/cmd/brew-aspell-dictionaries.rb index 260560733295b..4fe7f175b5197 100755 --- a/cmd/brew-aspell-dictionaries.rb +++ b/cmd/brew-aspell-dictionaries.rb @@ -10,7 +10,7 @@ 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{^