We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
find_near_matches('xyz', 'wz', max_l_dist=2) works correctly and yields Match(start=1, end=2, dist=2, matched='z').
find_near_matches('xyz', 'wz', max_l_dist=2)
Match(start=1, end=2, dist=2, matched='z')
find_near_matches('xyz', 'wz', max_substitutions=0, max_l_dist=2) does not work correctly since it yields
find_near_matches('xyz', 'wz', max_substitutions=0, max_l_dist=2)
[{Match} Match(start=0, end=1, dist=2, matched='w'), {Match} Match(start=1, end=1, dist=2, matched='')]
The problem is that the substring 'xyz' and the matched part of the string 'w' have distance 3 which is larger than max_l_dist.
'xyz'
'w'
max_l_dist
The text was updated successfully, but these errors were encountered:
Thanks for the report @Stonatus, that looks like a bug!
Sorry, something went wrong.
No branches or pull requests
find_near_matches('xyz', 'wz', max_l_dist=2)
works correctly and yields
Match(start=1, end=2, dist=2, matched='z')
.find_near_matches('xyz', 'wz', max_substitutions=0, max_l_dist=2)
does not work correctly since it yields
The problem is that the substring
'xyz'
and the matched part of the string'w'
have distance 3 which is larger thanmax_l_dist
.The text was updated successfully, but these errors were encountered: