DEV Community 👩‍💻👨‍💻

Discussion on: Daily Challenge #89 - Extract domain name from URL

erezwanderman profile image

Your comment is what's wrong with development today. Taking the shortest solution that seems to somehow solve the vague requirements and declaring it solved and secure.
Each of the JS solutions will fail for one of these test URLs: '', '', ''.
Except for mine.