Files
wehub-resource-sync d0e4308def
Validate YAML Workflows / Validate YAML Configuration Files (push) Waiting to run
chore: import upstream snapshot with attribution
2026-07-13 12:37:51 +08:00

5 lines
210 B
Python
Executable File

def titleize(value: str) -> str:
sanitized = value.replace("_", " ").replace("-", " ").strip()
if not sanitized:
return value
return " ".join(part.capitalize() for part in sanitized.split())