Skip to content

System.ArgumentOutOfRangeException thrown #1

@timmac-qmc

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.

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