-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
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
Labels
No labels