Skip to content

Customizations don't match paths with trailing wildcards #204

@mark-karlsrud

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions