Skip to content

capitalize() function #19787

@xIceFox

Description

@xIceFox

Is your feature request related to a problem? Please describe.
We are sometimes using capitalization for strings in bicep and I was always wondering, why there is no capitalize() function.
Currently (via bicep console):

var test = 'test'
var capitalized = '${toUpper(substring(test, 0, 1))}${substring(test, 1)}'
capitalized
'Test'

Describe the solution you'd like
A dedicated capitalize() function

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: UpvoteThis issue requires more votes to be consideredenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions