I’m having some problems on good old Codewars, writing a method that can
take a URL and return just the domain.
I’ve managed to create a Regex in Rubular
that passes my tests, but I’m having trouble implementing it properly.
Here are my tests:
Here’s my method:
As far as I can tell, this should work. Any ideas on what I’m doing