Function cleanCharacterName

  • Transforms the given name to a new string without ending emojis or alternative names.

    Returns

    The name without emojis or alternative names

    Parameters

    • name: string

      The name of the character

    Returns string