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

Trim all duplicate slashes #104

Merged
merged 11 commits into from
Nov 21, 2021
Merged

Trim all duplicate slashes #104

merged 11 commits into from
Nov 21, 2021

Conversation

kidonng
Copy link
Member

@kidonng kidonng commented Nov 16, 2021

Though very rare, it is possible to have multiple leading and trailing
successive slashes in pathname.

@kidonng kidonng changed the title Trim all trailing slashes Trim all leading and trailing slashes Nov 16, 2021
index.ts Outdated Show resolved Hide resolved
index.ts Show resolved Hide resolved
index.ts Outdated Show resolved Hide resolved
Co-authored-by: Federico Brigante <me@fregante.com>
@kidonng kidonng changed the title Trim all leading and trailing slashes Trim all duplicate slashes Nov 20, 2021
@fregante
Copy link
Member

fregante commented Nov 20, 2021

By the way the issue was that the tests are running on a node version that doesn’t have replaceAll.

But the current solution is better.

@fregante fregante merged commit 7d1687c into refined-github:main Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants