Skip to content

Add removeSingleSlash option#120

Merged
sindresorhus merged 3 commits intosindresorhus:masterfrom
silverwind:keepslash
Sep 28, 2020
Merged

Add removeSingleSlash option#120
sindresorhus merged 3 commits intosindresorhus:masterfrom
silverwind:keepslash

Conversation

@silverwind
Copy link
Copy Markdown
Contributor

@silverwind silverwind commented Sep 28, 2020

Decided it's better to have a separate option than to overload a boolean type with non-boolean values.

Fixes: #119

Edit: Updated to invert the option as it seems more in the spirit of this module.

@silverwind silverwind force-pushed the keepslash branch 3 times, most recently from 72491d5 to be04d70 Compare September 28, 2020 17:52
@silverwind silverwind changed the title Add keepSingleSlash option Add removeSingleSlash option Sep 28, 2020
Decided it's better to have a separate option than to overload a boolean
type with non-boolean values.

Fixes: sindresorhus#119
Comment thread index.d.ts Outdated
Comment thread index.d.ts Outdated
@sindresorhus sindresorhus merged commit 18effbe into sindresorhus:master Sep 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to keep trailing slash in all cases

2 participants