11:26 <@razor> Dwarf: ./ripnews.rb:257: warning: regexp has `}' without escape

This commit is contained in:
Ward Wouts 2005-02-02 10:27:58 +00:00
parent b39756813c
commit 007775c576

View file

@ -1,6 +1,6 @@
#!/usr/local/bin/ruby -w #!/usr/local/bin/ruby -w
# $Dwarf: ripnews.rb,v 1.96 2005/02/02 09:11:28 ward Exp $ # $Dwarf: ripnews.rb,v 1.97 2005/02/02 09:25:12 ward Exp $
# $Source$ # $Source$
# #
@ -254,7 +254,7 @@ def parse_config(default = {})
grouparr.collect{|g| grouparr.collect{|g|
config[g] = {} unless config.has_key?(g) config[g] = {} unless config.has_key?(g)
} }
elsif line =~ /^}$/ elsif line =~ /^\}$/
default.each_key{|x| default.each_key{|x|
grouparr.collect{|g| grouparr.collect{|g|
config[g][x] = default[x] unless config[g].has_key?(x) config[g][x] = default[x] unless config[g].has_key?(x)