node_modules/nodemailer/node_modules/mailcomposer/node_modules/mimelib/node_modules/encoding/index.js
/**
 * Converts charset name if needed
 *
 * @param {String} name Character set
 * @return {String} Character set name
 */
Converts charset name if needed
@param {String} name Character set
@return {String} Character set name
Converts charset name if needed @param { String } name Character set @return { String } Character set name
function checkEncoding(name){
    name = (name || "").toString().trim().
        replace(/^latin[\-_]?(\d+)$/i, "ISO-8859-$1").
        replace(/^win(?:dows)?[\-_]?(\d+)$/i, "WINDOWS-$1").
        replace(/^utf[\-_]?(\d+)$/i, "UTF-$1").
        replace(/^ks_c_5601\-1987$/i, "CP949").
        replace(/^us[\-_]?ascii$/i, "ASCII").
        toUpperCase();
    return name;
}
function checkEncoding ( name ) { name = ( name || "" ) . toString ( ) . trim ( ) . replace ( / ^latin[\-_]?(\d+)$ / i , "ISO-8859-$1" ) . replace ( / ^win(?:dows)?[\-_]?(\d+)$ / i , "WINDOWS-$1" ) . replace ( / ^utf[\-_]?(\d+)$ / i , "UTF-$1" ) . replace ( / ^ks_c_5601\-1987$ / i , "CP949" ) . replace ( / ^us[\-_]?ascii$ / i , "ASCII" ) . toUpperCase ( ) ; return name ; }
Converts charset name if needed
 @param {String} name Character set
 @return {String} Character set name
Converts charset name if needed @param { String } name Character set @return { String } Character set name