Skip to content
New issue

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

Implement support for "name matching processors". #50

Merged
merged 1 commit into from
Jul 24, 2024

Commits on Jul 24, 2024

  1. Implement support for "name matching validators".

    This is an unwieldy name for a complicated-sounding feature that's
    actually rather simple. In essence, this generalises the previous
    support we had for "distinct name matching", allowing the user to
    determine what set of name matching pairs should be considered a
    successful match or not.
    
    For example, distinct name matching is just:
    
    ```
    .name_matching_validator(|names| {
        names.values().collect::<HashSet<_>>().len() == names.len()
    })
    ```
    
    Of course, there are other uses this can be put towards!
    
    Because I'm a nice person, this commit still supports the
    `distinct_name_matching` function, though it is deprecated. There is a
    -- very unlikely -- sequence you could call which would mean that if you
    turn distinct name matching on and then off, it won't actually turn off:
    there's only so much I can do.
    ltratt committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    fb6250e View commit details
    Browse the repository at this point in the history