lib/autolinker.js
function getExpandedUrl(url, options) {
	var x = 0,
		i;
	if (options.urls) {
		i = options.urls.length;
		while (x < i) {
			if (options.urls[x].match === url) {
				if (options.urls[x].expanded) {
					return options.urls[x].expanded;
				}
				return null;
			}
			x++;
		}
	}
	return null;
}
function getExpandedUrl(url, options) {
	var x = 0,
		i;
	if (options.urls) {
		i = options.urls.length;
		while (x < i) {
			if (options.urls[x].match === url) {
				if (options.urls[x].expanded) {
					return options.urls[x].expanded;
				}
				return null;
			}
			x++;
		}
	}
	return null;
}
function getExpandedUrl ( url , options ) { var x = 0 , i ; if ( options . urls ) { i = options . urls . length ; while ( x < i ) { if ( options . urls [ x ] . match === url ) { if ( options . urls [ x ] . expanded ) { return options . urls [ x ] . expanded ; } return null ; } x ++ ; } } return null ; }
gets exteneded urls from options.urls array
gets exteneded urls from options . urls array