# File lib/timeliness/format_set.rb, line 30 def match(string, format_string=nil) format = single_format(format_string) if format_string match_regexp = format && format.regexp || @regexp if match_data = match_regexp.match(string) index = match_data.captures.index(string) start = index + 1 values = match_data.captures[start..(start+7)].compact format ||= @match_indexes[index] format.process(*values) end end