normalize-url icon indicating copy to clipboard operation
normalize-url copied to clipboard

Add option to normalize custom protocols

Open sindresorhus opened this issue 3 years ago • 1 comments

The normalization steps assume HTTP behavior, so it would only work with protocols that are very similar to HTTP.

sindresorhus avatar Nov 04 '22 08:11 sindresorhus

In normalize-url@7, normalizing localhost:8000 would result in https://localhost:8000 but because of #178, localhost: is now seen as a protocol. This makes sense, but it's still a bit of an unwanted behavior.

Not creating a new ticket because it's closely related to this, so I hope that the old behavior can be reinstated (with an option or otherwise) while adding a normalize custom protocols option.

Kilian avatar Mar 22 '23 12:03 Kilian