brew-aspell-dictionaries: use more explicit open.
parent
c1f7cf529b
commit
e453837304
|
@ -10,7 +10,7 @@ dict_mirror = "https://ftpmirror.gnu.org/aspell/dict"
|
||||||
|
|
||||||
languages = {}
|
languages = {}
|
||||||
|
|
||||||
open("#{dict_url}/0index.html") do |content|
|
URI.parse("#{dict_url}/0index.html").open do |content|
|
||||||
content.each_line do |line|
|
content.each_line do |line|
|
||||||
break if %r{^</table} =~ line
|
break if %r{^</table} =~ line
|
||||||
next unless /^<tr><td><a/ =~ line
|
next unless /^<tr><td><a/ =~ line
|
||||||
|
|
Loading…
Reference in New Issue