iamGlobMatch
Function: iamGlobMatch()
iamGlobMatch(
value,pattern):boolean
Defined in: packages/utils/src/glob.ts:53
Glob matching used by IAM for operation patterns, scope and the globMatch condition function
It replaces Casbin's minimatch-based globMatch: no brace expansion, no extglob, no character classes, so a
caller-controlled pattern cannot cost more than O(value × pattern). * and ? do not cross /.
Parameters
value
unknown
the value
pattern
unknown
the pattern
Returns
boolean
true when the value matches; false when either argument is not a string
Throws
Error when an argument exceeds the length limits: a failing condition refuses the call