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

Trim the spaces for string Type #104

Open
i-paragsaxena opened this issue Jul 29, 2024 · 1 comment
Open

Trim the spaces for string Type #104

i-paragsaxena opened this issue Jul 29, 2024 · 1 comment

Comments

@i-paragsaxena
Copy link

While comparing two strings if there is whitespace in the target, it shows as a change and returns a change value, is there any options to trim the string before comparison?

@soufianerafik
Copy link

Hi @i-paragsaxena! I'm not sure if I'm understanding this correctly. Technically, strings with differing whitespace are not identical, which is why the library currently shows them as changes. Isn't that the expected behavior? I believe that the library is behaving correctly if it reacts to trailing spaces, unless I'm missing something.

Looking forward to your thoughts :)

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