lib/collection/certificate.js
function (url) {
        if (_.isEmpty(url)) {
            return false;
        }

        // convert url strings to Url
        (typeof url === STRING) && (url = new Url(url));

        // this ensures we don't proceed any further for any protocol
        // that is not https
        if (url.protocol !== HTTPS) {
            return false;
        }

        // test the input url against allowed matches
        return this.matches.test(url);
    }
function (url) {
        if (_.isEmpty(url)) {
            return false;
        }

        // convert url strings to Url
        (typeof url === STRING) && (url = new Url(url));

        // this ensures we don't proceed any further for any protocol
        // that is not https
        if (url.protocol !== HTTPS) {
            return false;
        }

        // test the input url against allowed matches
        return this.matches.test(url);
    }
function ( url ) { if ( _ . isEmpty ( url ) ) { return false ; } // convert url strings to Url ( typeof url === STRING ) && ( url = new Url ( url ) ) ; // this ensures we don't proceed any further for any protocol // that is not https if ( url . protocol !== HTTPS ) { return false ; } // test the input url against allowed matches return this . matches . test ( url ) ; }
Checks if the certificate can be applied to a given url

@param {String|Url} url The url string for which the certificate is checked for match.
Checks if the certificate can be applied to a given url