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

Why adding space in the last? #8

Open
ghost opened this issue Feb 14, 2023 · 2 comments
Open

Why adding space in the last? #8

ghost opened this issue Feb 14, 2023 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 14, 2023

assert.Equal(t, "Ni Hao", unidecode.Unidecode("你好"))

return:

        	Error:      	Not equal: 
        	            	expected: "Ni Hao"
        	            	actual  : "Ni Hao "

it would be better if this returns just "Ni Hao".

@glaslos
Copy link

glaslos commented Apr 4, 2023

Seems like this is how the table is defined to get the spacing:

var x056 = []string{

@ivanjaros
Copy link

the bei jing, 北京, from examples is the same, with trailing space

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

No branches or pull requests

2 participants