Skip to content

like / nlike_utf8 do not allow escaping % #415

@Dandandan

Description

@Dandandan

Describe the bug

like_utf8 and nlike_utf8 and scalar variants don't take care of escaping the wildcard character.

To Reproduce

    test_utf8_scalar!(
        test_utf8_scalar_escape,
        vec!["a%", "a\\x"],
        "a\\%",
        like_utf8_scalar,
        vec![true, false]
    );

This fails in master, returning false / true.

Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    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