Skip to content

feat: add acronymize function to string utilities#1690

Open
arimotearipo wants to merge 1 commit intotoss:mainfrom
arimotearipo:feat/acronymize
Open

feat: add acronymize function to string utilities#1690
arimotearipo wants to merge 1 commit intotoss:mainfrom
arimotearipo:feat/acronymize

Conversation

@arimotearipo
Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings April 17, 2026 16:21
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
es-toolkit Ready Ready Preview, Comment Apr 17, 2026 5:01pm

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new acronymize helper to the src/string utilities module, along with a Vitest spec and a barrel export so consumers can import it from the package’s string entrypoint.

Changes:

  • Introduce acronymize(str) to build an acronym from the words parsed by the existing words() utility.
  • Add Vitest coverage for common acronymization cases (whitespace, punctuation, numbers).
  • Export acronymize from src/string/index.ts.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
src/string/index.ts Exposes acronymize from the string barrel export.
src/string/acronymize.ts Implements acronym generation using words().
src/string/acronymize.spec.ts Adds unit tests for the new acronymize utility.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/string/acronymize.ts
Comment thread src/string/acronymize.spec.ts Outdated
Comment thread src/string/acronymize.spec.ts Outdated
Comment thread src/string/index.ts Outdated
Comment thread src/string/acronymize.ts Outdated
Comment thread src/string/acronymize.ts Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/string/acronymize.spec.ts Outdated
Comment thread src/string/acronymize.ts Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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