lib/internal/bower-utils.js
function componentName(rawname) {
	var name = rawname.split(':')[0],
		index = name.replace('\\', '/').indexOf('/');
	return (index > 0) ? name.substring(0, index) : name;
}
function componentName(rawname) {
	var name = rawname.split(':')[0],
		index = name.replace('\\', '/').indexOf('/');
	return (index > 0) ? name.substring(0, index) : name;
}
function componentName ( rawname ) { var name = rawname . split ( ':' ) [ 0 ] , index = name . replace ( '\\' , '/' ) . indexOf ( '/' ) ; return ( index > 0 ) ? name . substring ( 0 , index ) : name ; }
extract component name from inputting rawname
extract component name from inputting rawname