modules/utils.js
/**
 * Returns true if the url is a supported scheme
 **/
Returns true if the url is a supported scheme
Returns true if the url is a supported scheme
function isUrlSchemeSupported(url) {
    var uriPattern = /^((http|https):\/\/)/;
    if (uriPattern.test(url)) {
        return true;
    }
    return false;
}
function isUrlSchemeSupported ( url ) { var uriPattern = / ^((http|https):\/\/) / ; if ( uriPattern . test ( url ) ) { return true ; } return false ; }
Returns true if the url is a supported scheme
Returns true if the url is a supported scheme
// Check its a supported scheme