unshiftio / url-parse

Small footprint URL parser that works seamlessly across Node.js and browser environments.
http://unshift.io
MIT License
1.03k stars 104 forks source link

[fix] Threat single forward/barckward slashes as double slashes extracting protocols #207

Closed 3rd-Eden closed 3 years ago

3rd-Eden commented 3 years ago

As per title, this ensures that http:/whatever.com and http:\whatever.com are both normalized to http:// protocols. This allows the correct hostname and paths to be extracted from these invalid URL's

Fixes #206