Skip to content

Conversation

@dvdksn
Copy link
Contributor

@dvdksn dvdksn commented Nov 18, 2024

const uri = "/foo//bar//////baz/"
console.log(uri.replace(/\/$/, "").replaceAll(/\/{2,}/g, "/"))
// '/foo/bar/baz'

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
@dvdksn dvdksn requested a review from crazy-max November 18, 2024 14:02
@github-actions github-actions bot added the area/release Relates to CI or deployment label Nov 18, 2024
@netlify
Copy link

netlify bot commented Nov 18, 2024

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 209d00f
🔍 Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/673b48ecb6129b000830c096
😎 Deploy Preview https://deploy-preview-21453--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@dvdksn dvdksn requested a review from a team November 18, 2024 14:05
@dvdksn dvdksn merged commit 2510166 into docker:main Nov 18, 2024
14 checks passed
@dvdksn dvdksn deleted the handle-double-trailing-slash branch November 18, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/release Relates to CI or deployment status/review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants