docx-validate
    Preparing search index...

    Function contentTypeMediaType

    • The media type of a content-type value: everything before the first ;, trimmed and ASCII-lowercased. RFC 7303 ยง9.1 registers parameters such as charset as optional additions to a media type, so two values that differ only in parameters share one media type (#540).

      Parameters

      • contentType: string

      Returns string