Skip to content

Conversation

@MichalKormanik
Copy link

@MichalKormanik MichalKormanik commented Oct 30, 2025

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

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.
@MichalKormanik MichalKormanik changed the title fix(slugs): improve creating slugs by triming first fix(templates): improve creating slugs by triming first Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant