getProtocol(url) {
		return (/^([a-z]+:)\/\/\/?/i.exec(url) || [])[1] || "";
	}
Returns protocol of a url e.g. 'ftp:' from 'ftp://localhost/foo/bar'
@param {string} url
@returns {"ftp:"|"sftp:"|"http:"|"https:"}