Skip to content

fix: resolve bug in string/truncate #2635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

Snehil-Shah
Copy link
Member

Resolves #2630

Description

What is the purpose of this pull request?

This pull request:

  • fixes buggy logic in string/truncate
  • update tests to be receptive to this

Related Issues

Does this pull request have any related issues?

This pull request:

Checklist

Please ensure the following tasks are completed before submitting this pull request.


@stdlib-js/reviewers

@Snehil-Shah Snehil-Shah added the Bug Something isn't working. label Jul 20, 2024
Copy link
Member

@kgryte kgryte left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks, @Snehil-Shah!

@kgryte kgryte merged commit 4345839 into stdlib-js:develop Jul 20, 2024
6 checks passed
@Snehil-Shah Snehil-Shah deleted the fix-truncate branch July 20, 2024 08:38
gunjjoshi pushed a commit to gunjjoshi/stdlib that referenced this pull request Aug 21, 2024
PR-URL: stdlib-js#2635
Closes: stdlib-js#2630
Reviewed-by: Athan Reines <[email protected]>
Signed-off-by: Snehil Shah <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: string/truncate behaves abnormally when truncating strings to length 3
2 participants