Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix removeSingleSlash option adding slashes #122

Merged
merged 1 commit into from Sep 30, 2020

Commits on Sep 29, 2020

  1. Fix removeSingleSlash option adding slashes

    Turns out the option caused single slashes to be added to URLs that had
    none because the `URL` constructor defaults pathname to `/` both on parse
    and .toString(), so I had to prevent overwriting `urlString` to be able
    to check if the passed URL's pathname is `/`.
    
    Also added an entry for the option to `index.test-d.ts`.
    silverwind committed Sep 29, 2020
    Copy the full SHA
    32bd891 View commit details
    Browse the repository at this point in the history