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

Pathname strips out `/` #200

Closed JSeligsohn closed 3 years ago

JSeligsohn commented 3 years ago

Looks like in v1.5.0, pathname no longer includes the initial / from the url. Is that intentional? A breaking change from v1.4.7?

e.g. url: /yippee/abc 1.4.7 -> path = /yippee/abc 1.5.0 -> path = yippee/abc

3rd-Eden commented 3 years ago

It's a bug

lpinca commented 3 years ago

This is the same underlying issue as #199.

JSeligsohn commented 3 years ago

Okay, good to know. I'll have to revert to 1.4.7 in the meantime.

3rd-Eden commented 3 years ago

Fixed in 1.5.1, thanks for reporting <3