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(common): Better support for slug generation when the replacer occurs in the input string #3289

Merged

Conversation

jezzzm
Copy link
Contributor

@jezzzm jezzzm commented Dec 21, 2024

Description

The normalizeString function doesn't effectively support cases where the replacer itself occurs in the original string.
My Product - Complete Collection -> my-product---complete-collection

this PR adjusts the normalizer such that the resultant output is my-product-complete-collection

(i've taken a solitary additional upvote as the go-ahead signal)

Breaking changes

Does this PR include any breaking changes we should be aware of? nup

Screenshots

You can add screenshots here if applicable.

Checklist

📌 Always:

  • I have set a clear title
  • My PR is small and contains a single feature
  • I have checked my own PR

👍 Most of the time:

  • I have added or updated test cases
  • I have updated the README if needed

Copy link

vercel bot commented Dec 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview Dec 21, 2024 10:55pm

@michaelbromley michaelbromley merged commit f362a4b into vendure-ecommerce:master Dec 30, 2024
31 checks passed
@michaelbromley
Copy link
Member

Thanks! That's a nice improvement.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants