Skip to content

Customizations don't match paths with trailing wildcards #204

Description

@mark-karlsrud

If a customization has a path with a trailing wildcard, it does not match paths as expected.

Example:
foo.* should match foo.bar. The following should print "true", but it prints "false".

import org.skyscreamer.jsonassert.Customization;

class Test {
    public static void main(String[] args) {
        System.out.println(
            new Customization("foo.*", (actual, expected) -> true)
                .appliesToPath("foo.bar")
        );
    }
}

version: 1.5.3

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions