• Normalizes a given name string by performing the following transformations:

    • Normalizes the string using Unicode Normalization Form D (NFD).
    • Removes accents and diacritical marks.
    • Removes occurrences of the Vlocity namespace.
    • Removes occurrences of the Vlocity keyword.
    • Replaces non-alphanumeric characters with a hyphen ('-').
    • Replaces multiple consecutive hyphens with a single hyphen.
    • Replaces multiple consecutive hyphens and underscores with a single underscore.
    • Removes leading non-alphanumeric characters.
    • Removes trailing non-alphanumeric characters.

    Parameters

    • name: string

      The name string to be normalized.

    Returns any

    The normalized name string.