wotschofsky / domain-digger

Full Toolkit for Next-Level Domain Analysis
https://digger.tools
GNU Affero General Public License v3.0
338 stars 39 forks source link

Automatically cut protocol and path at the search #9

Closed maaaathis closed 1 year ago

maaaathis commented 1 year ago

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.

vercel[bot] commented 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
wotschofsky commented 1 year ago

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.

wotschofsky commented 1 year ago

I believe new URL('...') throws an error if the input string is malformatted. Should probably catch that error.

maaaathis commented 1 year ago

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.

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
7.7% 7.7% Duplication

wotschofsky commented 1 year ago

Thanks again @Maaaathis! I appreciate the attention to detail with label.