function formatCleanValue(value = '', field = '', params = {}) {
        const matches = value.match(/_\$!<(.*)>!\$_/);

        // Some imported vCards from Apple have weird bracket around the value _$!<value>!$_
        if (Array.isArray(matches)) {
            return matches[1];
        }

        // Handle X-APPLE-OMIT-YEAR https://github.com/ProtonMail/Angular/issues/6116
        if (field === 'bday' && params.xAppleOmitYear === '1604') {
            const { month, day } = parseDate(value) || {};
            // If it was possible to parse the date, return it in a truncated format.
            if (month && day) {
                // Delete the apple specific tag since it's now parsed properly.
                delete params.xAppleOmitYear;
                return `--${month}-${day}`;
            }
            // Else just return the original value.
            return value;
        }

        if (field === 'org') {
            // ORG:ABC\, Inc.;North American Division;Marketing
            return value
                .split(';')
                .map((str = '') => str.trim())
                .filter(Boolean)
                .join(', ');
        }

        return value;
    }
/**
     * Format clean value
     * @param {String} value The value of the vcard field
     * @param {String} field The name of the vcard field
     * @param {Object} params Rest of the parameters from the vcard value
     * @return {String}
     */
Format clean value
@param {String} value The value of the vcard field
@param {String} field The name of the vcard field
@param {Object} params Rest of the parameters from the vcard value
@return {String}
Format clean value @param { String } value The value of the vcard field @param { String } field The name of the vcard field @param { Object } params Rest of the parameters from the vcard value @return { String }
function formatCleanValue(value = '', field = '', params = {}) {
        const matches = value.match(/_\$!<(.*)>!\$_/);
        if (Array.isArray(matches)) {
            return matches[1];
        }
        if (field === 'bday' && params.xAppleOmitYear === '1604') {
            const { month, day } = parseDate(value) || {};
            if (month && day) {
                delete params.xAppleOmitYear;
                return `--${month}-${day}`;
            }
            return value;
        }
        if (field === 'org') {
            return value
                .split(';')
                .map((str = '') => str.trim())
                .filter(Boolean)
                .join(', ');
        }
        return value;
    }
function formatCleanValue ( value = '' , field = '' , params = { } ) { const matches = value . match ( / _\$!<(.*)>!\$_ / ) ; if ( Array . isArray ( matches ) ) { return matches [ 1 ] ; } if ( field === 'bday' && params . xAppleOmitYear === '1604' ) { const { month , day } = parseDate ( value ) || { } ; if ( month && day ) { delete params . xAppleOmitYear ; return ` ${ month } ${ day } ` ; } return value ; } if ( field === 'org' ) { return value . split ( ';' ) . map ( ( str = '' ) => str . trim ( ) ) . filter ( Boolean ) . join ( ', ' ) ; } return value ; }
Format clean value
 @param {String} value The value of the vcard field
 @param {String} field The name of the vcard field
 @param {Object} params Rest of the parameters from the vcard value
 @return {String}
Format clean value @param { String } value The value of the vcard field @param { String } field The name of the vcard field @param { Object } params Rest of the parameters from the vcard value @return { String }
// Some imported vCards from Apple have weird bracket around the value _$!<value>!$_ // Handle X-APPLE-OMIT-YEAR https://github.com/ProtonMail/Angular/issues/6116 // If it was possible to parse the date, return it in a truncated format. // Delete the apple specific tag since it's now parsed properly. // Else just return the original value. // ORG:ABC\, Inc.;North American Division;Marketing