(env: NodeJS.ProcessEnv, key: string)
| 98 | } |
| 99 | |
| 100 | function optionalEnvValue(env: NodeJS.ProcessEnv, key: string): string | null { |
| 101 | const value = env[key]; |
| 102 | return typeof value === 'string' && value.length > 0 ? value : null; |
| 103 | } |
| 104 | |
| 105 | function sanitizeSegment(value: string): string { |
| 106 | const sanitized = value.replaceAll(/[^a-zA-Z0-9._-]/g, '_'); |
no outgoing calls
no test coverage detected