Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory fusiondirectory
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 33
    • Issues 33
    • List
    • Boards
    • Service Desk
    • Milestones
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectoryfusiondirectory
  • Issues
  • #6145
Closed
Open
Issue created Feb 04, 2021 by bmortier@bmortierMaintainer

We need a modifier to generate valid uids

With current modifiers it is quite hard to write a macro that will generate a valid uid from a random name.

The modifier a will remove non-ascii characters but not spaces and quotes.

The idea is to add a «mode» parameter to the a modifier, defaulting to ascii, and with an alternate uid mode, which removes everything that is not allowed in an uid, depending on strict mode configuration.

It should remove spaces, quotes, accents, and convert to lowercase as well, so that only one modifier is needed for simple uid generation.

%a[uid]|sn% instead of %alp|sn%

Assignee
Assign to
Time tracking