Skip to content
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

Lose characters when fullwidth characters exist and end is not specified #26

Open
bet4it opened this issue May 27, 2019 · 2 comments · May be fixed by #27
Open

Lose characters when fullwidth characters exist and end is not specified #26

bet4it opened this issue May 27, 2019 · 2 comments · May be fixed by #27

Comments

@bet4it
Copy link

@bet4it bet4it commented May 27, 2019

Issuehunt badges

Lose characters when there are fullwidth characters in the string and the third argument end is not specified:

const str = sliceAnsi("古古test", 0);
// => '古古te'

IssueHunt Summary

Backers (Total: $60.00)

Submitted pull Requests


Become a backer now!

Or submit a pull request to get the deposits!

Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

sindresorhus added a commit that referenced this issue Sep 17, 2019
@sindresorhus

This comment has been minimized.

Copy link
Member

@sindresorhus sindresorhus commented Sep 17, 2019

I've added a failing test for this: 108d0ad

@issuehunt-app

This comment has been minimized.

Copy link

@issuehunt-app issuehunt-app bot commented Sep 19, 2019

@issuehunt has funded $60.00 to this issue.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.