taleinat / fuzzysearch

Find parts of long text or data, allowing for some changes/typos.
MIT License
301 stars 26 forks source link

Incorrect output for find_near_matches with two strings of the same length? #15

Closed Ericxgao closed 5 years ago

Ericxgao commented 5 years ago

Is this behavior intended? If so - why?

When I do: matches = find_near_matches('AAAA', 'ZZZZ', max_l_dist=4)

There are no matches, despite the fact that AAAA can become ZZZZ with 4 substitutions. Am I misinterpreting something here?

taleinat commented 5 years ago

That looks like a bug! I'll check it out.

taleinat commented 5 years ago

Fixed in commit a8219a04, released in v0.6.2.

Thanks for reporting this, @Ericxgao!