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
feat: improve default slugify utility by triming whitespace first (#14421)
Currently, when you are creating slugs and leave spaces on beggining or
the end, they will be replaced with hyphen, this enhancement avoids
trims unwanted spaces first.
### What?
Utilities for creating slugs from titles
### Why?
Badly created slug with hyphen in the end, when user added title with
space.
### How?
Adding simple `trim()` function before replacing spaces with hyphens
Co-authored-by: Paul Popus <paul@payloadcms.com>
0 commit comments