# File lib/mime/types.rb, line 91 91: def Type.simplified(content_type) 92: md = CONTENT_TYPE_RE.match(content_type) 93: if not md.nil? 94: mt = md[1] 95: st = md[2] 96: s = "" 97: s << mt.downcase.gsub(%{^x-}, '') << '/' << st.downcase.gsub(%{^x-}, '') 98: else 99: nil 100: end 101: end