lib/vcard.js
function tryToSplit(value) {
    if (value.match(HAS_SEMICOLON_SEPARATOR)) {
        value = value.replace(/\\,/g, ',');
        return splitValue(value, ';');
    } else if (value.match(HAS_COMMA_SEPARATOR)) {
        value = value.replace(/\\;/g, ';');
        return splitValue(value, ',');
    } else {
        return value
            .replace(/\\,/g, ',')
            .replace(/\\;/g, ';');
    }
}
function tryToSplit(value) {
    if (value.match(HAS_SEMICOLON_SEPARATOR)) {
        value = value.replace(/\\,/g, ',');
        return splitValue(value, ';');
    } else if (value.match(HAS_COMMA_SEPARATOR)) {
        value = value.replace(/\\;/g, ';');
        return splitValue(value, ',');
    } else {
        return value
            .replace(/\\,/g, ',')
            .replace(/\\;/g, ';');
    }
}
function tryToSplit ( value ) { if ( value . match ( HAS_SEMICOLON_SEPARATOR ) ) { value = value . replace ( / \\, / g , ',' ) ; return splitValue ( value , ';' ) ; } else if ( value . match ( HAS_COMMA_SEPARATOR ) ) { value = value . replace ( / \\; / g , ';' ) ; return splitValue ( value , ',' ) ; } else { return value . replace ( / \\, / g , ',' ) . replace ( / \\; / g , ';' ) ; } }
Split value by "," or ";" and remove escape sequences for this separators
@param {string} value
@returns {string|string[]
Split value by or ; and remove escape sequences for this separators