Skip to main content
lower(str) returns a copy of str with all letters converted to lowercase.

Signature

Example

Normalize a branch name to lowercase before using it as a Docker image tag. Branch names may contain uppercase letters from conventions like feature/UserAuth, which are not valid in image tag format:
feature/UserAuth becomes feature-userauth.

Notes

  • lower converts all Unicode letters, not just ASCII.
  • Pair lower with replace or regexreplace to sanitize strings for use in identifiers, tags, or filenames.