Charter · Role syntax

Wildcards (*)

A pattern containing * selects every id it matches. It is matched against the ids that exist when the role is resolved, so an id added later is granted without a change to the charter. In the example me.* selects every action id that begins with me.: me.tickets and me.pass.

Charter
{ member: ['programme', 'me.*'] }
Action ids
[
  'welcome',
  'programme',
  'seats',
  'me.tickets',
  'me.pass',
  'door.list',
  'members',
  'takings',
  'settings',
]
Resolved ids
['programme', 'me.tickets', 'me.pass']
Output matches the expected value

Runs in this page on the installed package. The input and the expected output are defined by the example.