Skip to content

System.ArgumentOutOfRangeException thrown #1

Description

@timmac-qmc

If you pass a string with a length less than 3 to ApplyFuzzySearch it throws an exception inside Build3GramString

The code below results in a negative value passed to Range:

Enumerable.Range(0, ns.Length - 2)

This should probably fail gracefully and return an empty list.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions