Skip to content

Case insensitive matching. #23

@JustinAzoff

Description

@JustinAzoff

It would be useful if there was a way to match strings ignoring case. It would likely be fine if the case was ignored at create time, like.

local p = paraglob_init_ignore_case(pats);

or maybe

local p = paraglob_init_with_flags(pats, PARAGLOB_IGNORE_CASE);

or similar for

paraglob_match_ignore_case(...);

Currently one can accomplish this by initializing patterns with lowercase strings and use

paraglob_match(p, to_lower(some_string));

but that has a large overhead.

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