Charter · API
matchGlob
Returns true if a pattern matches an id and false otherwise. The only wildcard is *, which matches any run of characters, dots included. **, braces and regular expressions are not supported.
[
'matchGlob('me.*', 'me.tickets')',
'matchGlob('me.*', 'members')',
'matchGlob('*.read', 'bookings.read')',
'matchGlob('door', 'door.list')',
][true, false, true, false]
Runs in this page on the installed package. The input and the expected output are defined by the example.