/*
Write a function that when given a URL as a string, parses out just the domain
name and returns it as a string. For example:
* url = "http://github.com/carbonfive/raygun" -> domain name = "github"
* url = "http://www.zombie-bites.com" -> domain name = "zombie-bites"
* url = "https://www.cnet.com" -> domain name = cnet"
*/
const domainName = url => {
let regExp = /http(s)?://|www./gi
return url.replace(regExp, "").split(".")[0]
}
// With love @kouqhar