ABenassi87 / ngx-text-diff

A Text Diff component for Angular
https://ngx-text-diff.herokuapp.com/home
50 stars 44 forks source link

Very weird results after removing one "," from sentence. #54

Open devgeni opened 3 years ago

devgeni commented 3 years ago

Hello! Hope you're doing well.

I found a strange behavior while using your demo page when comparing two sentences. I removed just one comma from the text and instead of highlighting just this comma I got a bunch of other highlights.

You can try it yourself.

Here is the text for "Left Content": Normal text: In the process of internal desktop applications development, many different design specs and implementations would be involved, which might cause designers and developers difficulties and duplication and reduce the efficiency of development.

And here is the text for "Right Content": Normal text: In the process of internal desktop applications development many different design specs and implementations would be involved, which might cause designers and developers difficulties and duplication and reduce the efficiency of development.

ABenassi87 commented 3 years ago

Hi @devgeni, nice to meet you and thank you for reporting this issue. I'll try to take a look at it soon and see what happens. In addition, I'm working on a new release with some improvements.