Skip to content

Don't "truncate" a single-character string#26

Merged
sindresorhus merged 2 commits into
sindresorhus:mainfrom
ItsHarper:fix/single-character-truncation
Oct 23, 2025
Merged

Don't "truncate" a single-character string#26
sindresorhus merged 2 commits into
sindresorhus:mainfrom
ItsHarper:fix/single-character-truncation

Conversation

@ItsHarper

Copy link
Copy Markdown
Contributor

Passing in a single-character string would return the ellipsis, despite that not actually being any shorter.

@sindresorhus sindresorhus merged commit e06eefa into sindresorhus:main Oct 23, 2025
3 checks passed
@ItsHarper ItsHarper deleted the fix/single-character-truncation branch October 23, 2025 13:55
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.

2 participants