You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
quite a few of our products happen to include a dash - in the product name, so when our staff create products, the slug generated often has too many dashes.
correction is frequently missed as the dashes are often out of view of the slug input, so you'd have to scroll sideways within it to verify the generated slug.
is it safe to assume that this output would never be desired in any locale?
e.g.
name: The Kutopia Collection - Complete Bundle
slug: the-kutopia-collection---complete-bundle
it'd be a pretty quick update to the normalizer with .replace(/-{1,}/g, '-') (or dynamically - the dash replaced with whatever separator is applied)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
quite a few of our products happen to include a dash
-
in the product name, so when our staff create products, the slug generated often has too many dashes.correction is frequently missed as the dashes are often out of view of the slug input, so you'd have to scroll sideways within it to verify the generated slug.
is it safe to assume that this output would never be desired in any locale?
e.g.
name:
The Kutopia Collection - Complete Bundle
slug:
the-kutopia-collection---complete-bundle
it'd be a pretty quick update to the normalizer with
.replace(/-{1,}/g, '-')
(or dynamically - the dash replaced with whatever separator is applied)Beta Was this translation helpful? Give feedback.
All reactions