src/aria/templates/CSSCtxt.js
function (url) {
            var tmp = url.replace(/\burl\s*/gi, "");    // removing url word
            tmp = tmp.charAt(0) === "(" ? tmp.substring(1, tmp.length - 1) : tmp; // removing brackets
            tmp = tmp.charAt(0) === "\'" || tmp.charAt(0) === "\"" ? tmp.substring(1, tmp.length - 1) : tmp; // removing quotes
            return tmp;
        }
function (url) {
            var tmp = url.replace(/\burl\s*/gi, "");    // removing url word
            tmp = tmp.charAt(0) === "(" ? tmp.substring(1, tmp.length - 1) : tmp; // removing brackets
            tmp = tmp.charAt(0) === "\'" || tmp.charAt(0) === "\"" ? tmp.substring(1, tmp.length - 1) : tmp; // removing quotes
            return tmp;
        }
function ( url ) { var tmp = url . replace ( / \burl\s* / gi , "" ) ; // removing url word tmp = tmp . charAt ( 0 ) === "(" ? tmp . substring ( 1 , tmp . length - 1 ) : tmp ; // removing brackets tmp = tmp . charAt ( 0 ) === "\'" || tmp . charAt ( 0 ) === "\"" ? tmp . substring ( 1 , tmp . length - 1 ) : tmp ; // removing quotes return tmp ; }
Clean the url removing brackets, quotes, etc.
@param {String} url URL
@return {String}
Clean the url removing brackets quotes etc .