# File formvalidator.rb, line 919 def match_cc_exp(val) matched_month = matched_year = nil month, year = val.split("/") return nil if (matched_month = month.scan(/^\d+$/).to_s).empty? return nil if (matched_year = year.scan(/^\d+$/).to_s).empty? year = year.to_i month = month.to_i year += (year < 70) ? 2000 : 1900 if year < 1900 now = Time.new.year return nil if (year < now) || (year == now && month <= Time.new.month) "#{matched_month}/#{matched_year}" end