Skip to content

Trim all duplicate slashes - #104

Merged
fregante merged 11 commits into
refined-github:mainfrom
kidonng:patch-5
Nov 21, 2021
Merged

fregante merged 11 commits into
refined-github:mainfrom
kidonng:patch-5

Conversation

@kidonng

@kidonng kidonng commented Nov 16, 2021 •

Copy link
Copy Markdown
Member

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
Comment thread index.ts Resolved
Comment thread index.ts Resolved
Comment thread index.ts Resolved
Co-authored-by: Federico Brigante <[email protected]>
@kidonng kidonng changed the title Trim all leading and trailing slashes Trim all duplicate slashes Nov 20, 2021
@fregante

fregante commented Nov 20, 2021 •

Copy link
Copy Markdown
Member

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.

3 participants