Support WildCard Match in getFilteredPolicy
See original GitHub issueExample : I have subject admin:create:any , admin:create:own, i need wildcard to get matched subject and then check value is any or own to handle my business logic
getFilteredPolicy(0, 'admin:create:*', 'user', 'create')
I think the getFilteredPolicy() support something like
if (fieldValue !== '' && rule[fieldIndex + i] !== fieldValue && !picomatch.isMatch(rule[fieldIndex + i], fieldValue)) {
matched = false;
break;
}
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
wildcard-match - npm
A tiny and extremely fast library for compiling and matching basic glob patterns. Latest version: 5.1.2, last published: 2 years ago.
Read more >Win32 API to do wildcard string match - c++ - Stack Overflow
The API that FindFirstFile uses internally for wildcard matches is probably FsRtlIsNameInExpression. DbgHelp may be part of the operating system.
Read more >Filter wildcard support - IBM
The wildcard character (%) enables the collector to match strings without you having to provide all possible string values for a filter value....
Read more >Wildcard Pattern Matching - GeeksforGeeks
character matches with one or more characters in Text. ... If they do not match, wildcard pattern and Text do not match.
Read more >wildcard - Go Packages
supports '*' and '?' wildcards in the pattern string. unlike path.Match(), considers a path as a flat name space while matching the pattern....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kerituni12 please review #361
@hsluoyz maybe we can create a method so that wildcard support can be added for all such types of methods. should we focus on adding something like that?