@umbraco-cms/backoffice
    Preparing search index...

    Function fromCamelCaseIfCamelCase

    • Applies fromCamelCase only when the string looks like camelCase (starts with a lowercase letter and contains no spaces). Strings that are already display-ready (PascalCase, contain spaces, etc.) are returned as-is.

      Parameters

      • str: string

        The string to conditionally convert.

      Returns string

      • The converted or original string.