function splitUrl(sUrl) {
		var m = rUrl.exec(sUrl);
		if ( !m || A_VALID_FILE_TYPES.indexOf( m[2] ) < 0 ) {
			throw new Error("resource URL '" + sUrl + "' has unknown type (should be one of " + A_VALID_FILE_TYPES.join(",") + ")");
		}
		return { url : sUrl, prefix : m[1], ext : m[2], query: m[4], hash: (m[5] || ""), suffix : m[2] + (m[3] || "") };
	}
/**
	 * Helper to split a URL with the above regex.
	 * Either returns an object with the parts or undefined.
	 * @param {string} sUrl URL to analyze / split into pieces.
	 * @returns {object} an object with properties for the individual URL parts
	 */
Helper to split a URL with the above regex.
Either returns an object with the parts or undefined.
@param {string} sUrl URL to analyze / split into pieces.
@returns {object} an object with properties for the individual URL parts
Helper to split a URL with the above regex . Either returns an object with the parts or undefined . @param { string } sUrl URL to analyze / split into pieces . @returns { object } an object with properties for the individual URL parts
function splitUrl(sUrl) {
		var m = rUrl.exec(sUrl);
		if ( !m || A_VALID_FILE_TYPES.indexOf( m[2] ) < 0 ) {
			throw new Error("resource URL '" + sUrl + "' has unknown type (should be one of " + A_VALID_FILE_TYPES.join(",") + ")");
		}
		return { url : sUrl, prefix : m[1], ext : m[2], query: m[4], hash: (m[5] || ""), suffix : m[2] + (m[3] || "") };
	}
function splitUrl ( sUrl ) { var m = rUrl . exec ( sUrl ) ; if ( ! m || A_VALID_FILE_TYPES . indexOf ( m [ 2 ] ) < 0 ) { throw new Error ( "resource URL '" + sUrl + "' has unknown type (should be one of " + A_VALID_FILE_TYPES . join ( "," ) + ")" ) ; } return { url : sUrl , prefix : m [ 1 ] , ext : m [ 2 ] , query : m [ 4 ] , hash : ( m [ 5 ] || "" ) , suffix : m [ 2 ] + ( m [ 3 ] || "" ) } ; }
Helper to split a URL with the above regex.
Helper to split a URL with the above regex .