extract-domain icon indicating copy to clipboard operation
extract-domain copied to clipboard

fails to extract with path

Open ashubham opened this issue 2 years ago • 1 comments

extractDomain(["mother.com/q/s"])

Output should be: mother.com but instead it is mother.com/q/s.

ashubham avatar Nov 22 '23 00:11 ashubham

I understand your issue here, but this is not a complete URL.

As described in the readme: https://developer.mozilla.org/en-US/docs/Learn/Common_questions/Web_mechanics/What_is_a_URL

However, of course it would be nice to support a case like this as well, so I will keep the issue open.

bjarneo avatar Nov 22 '23 06:11 bjarneo