Does anyone know what the point of the following bit of code (from routing.rb) does?
class Regexp #:nodoc: def number_of_captures Regexp.new("|#{source}").match('').captures.length end end
Does this not always return 0, since there are no captures when matching '' to ''?