(str: string)
| 129 | } |
| 130 | |
| 131 | export function addTrailingPathSeparator(str: string): string { |
| 132 | return str.endsWith(path.sep) |
| 133 | ? str |
| 134 | : // If this is Windows, we need to change the forward slash to backward |
| 135 | `${str.replace(/[\\/]$/, '')}${path.sep}`; |
| 136 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…