esamattis / esamattis/underscore.string

bug: prune doesnt work on non-english strings

Open
#418 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.4k
Forks
367
PR merge metrics
No merged PRs in 30d

Description

tested with node.js
can be reproduced with the following text:
`prune("שלום עולם", 5)`

will return the string `"..."`
should return `"שלום..."`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.