# File mime/types.rb, line 85 85: def Type.simplified(content_type) 86: md = @@content_type_re.match(content_type) 87: if not md.nil? 88: mt = md[1] 89: st = md[2] 90: s = "" 91: s << mt.downcase.gsub(/^x-/, '') << '/' << st.downcase.gsub(/^x-/, '') 92: else 93: nil 94: end 95: end