Closed maaaathis closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
domain-digger | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 22, 2023 7:37am |
Hi @Maaaathis, thanks for the suggestion!
I think the utility of this could be even greater when using new URL('...').hostname
as this would also allow for non-http protocols as well as full addresses including a path to be pasted.
I believe new URL('...')
throws an error if the input string is malformatted. Should probably catch that error.
Heyy @feliskio, of course that makes even more sense directly. I have implemented this once. If it is not a correct URL, the part is simply skipped and validated normally.
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
7.7% Duplication
Thanks again @Maaaathis! I appreciate the attention to detail with label.
It will automatically remove all HTTP & HTTPS protocols that are at the beginning of a target search URL.
So URL's can be copied and entered directly from the browser without annoying reformatting and removing of the protocol.