lib/roda/plugins/class_matchers.rb in roda-3.68.0 vs lib/roda/plugins/class_matchers.rb in roda-3.69.0

- old
+ new

@@ -31,10 +31,10 @@ # If you have a segment match the passed regexp, but decide during block # processing that you do not want to treat it as a match, you can have the # block return nil or false. This is useful if you want to make sure you # are using valid data: # - # class_matcher(Date, /(\dd\d)-(\d\d)-(\d\d)/) do |y, m, d| + # class_matcher(Date, /(\d\d\d\d)-(\d\d)-(\d\d)/) do |y, m, d| # y = y.to_i # m = m.to_i # d = d.to_i # [Date.new(y, m, d)] if Date.valid_date?(y, m, d) # end