(prefix: string, path: string)
| 112 | } |
| 113 | |
| 114 | export const joinPathPrefix = (prefix: string, path: string): string => { |
| 115 | const normalizedPrefix = prefix.replace(/\/+$/, '') |
| 116 | const normalizedPath = path.startsWith('/') ? path : `/${path}` |
| 117 | |
| 118 | return `${normalizedPrefix}${normalizedPath}` |
| 119 | } |
no outgoing calls
no test coverage detected