SanitizeName sanitizes a string for use as an identifier, file name, or similar context.
(name string, opts *SanitizeOptions)
| 95 | |
| 96 | // SanitizeName sanitizes a string for use as an identifier, file name, or similar context. |
| 97 | func SanitizeName(name string, opts *SanitizeOptions) string { |
| 98 | return stringutil.SanitizeName(name, opts) |
| 99 | } |
| 100 | |
| 101 | // SanitizeWorkflowName sanitizes a workflow name for use in artifact names and file paths. |
| 102 | // It converts the name to lowercase and replaces or removes characters that are invalid |