(name: string)
| 98 | * Replaces all non-alphanumeric characters with hyphens and lowercases. |
| 99 | */ |
| 100 | export function sanitizeName(name: string): string { |
| 101 | return name.replace(/[^a-zA-Z0-9]/g, '-').toLowerCase() |
| 102 | } |
| 103 | |
| 104 | /** |
| 105 | * Sanitizes an agent name for use in deterministic agent IDs. |
no outgoing calls
no test coverage detected