lib/ri_cal/parser.rb in rubyredrick-ri_cal-0.7.4 vs lib/ri_cal/parser.rb in rubyredrick-ri_cal-0.7.5

- old
+ new

@@ -22,10 +22,13 @@ def self.parse_params(string) #:nodoc: if string string.split(";").inject({}) { |result, val| m = /^(.+)=(.+)$/.match(val) raise "Invalid parameter value #{val.inspect}" unless m - result[m[1]] = m[2] + #TODO - The gsub below is a simplest fix for http://rick_denatale.lighthouseapp.com/projects/30941/tickets/19 + # it may need further examination if more pathological cases show up. + param_val = m[2].sub(/^\"(.*)\"$/, '\1') + result[m[1]] = param_val result } else nil end \ No newline at end of file