From 007775c576fc50f085001161b59c97cb3ff1aaf1 Mon Sep 17 00:00:00 2001 From: Ward Wouts Date: Wed, 2 Feb 2005 10:27:58 +0000 Subject: [PATCH] 11:26 <@razor> Dwarf: ./ripnews.rb:257: warning: regexp has `}' without escape --- trunk/ripnews/ripnews.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/ripnews/ripnews.rb b/trunk/ripnews/ripnews.rb index 9254697..ac86371 100755 --- a/trunk/ripnews/ripnews.rb +++ b/trunk/ripnews/ripnews.rb @@ -1,6 +1,6 @@ #!/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$ # @@ -254,7 +254,7 @@ def parse_config(default = {}) grouparr.collect{|g| config[g] = {} unless config.has_key?(g) } - elsif line =~ /^}$/ + elsif line =~ /^\}$/ default.each_key{|x| grouparr.collect{|g| config[g][x] = default[x] unless config[g].has_key?(x)