Check if an input is a string or a url

In this scenario, we are not checking if this is a valid url but we just want to differentiate if it is a string or a url.

var str = 'winnieverzosa.com'
isURL(str);
function isURL(str){
	if ( str.match(/.*\..*/) ){
		alert(str + ' is a URL');
	} else {
		alert(str + ' is NOT a URL');
	}
}