(path: string)
| 67 | } |
| 68 | |
| 69 | export function extnamePath(path: string): string { |
| 70 | const basename = basenamePath(path) |
| 71 | const index = basename.lastIndexOf('.') |
| 72 | if (index <= 0) { |
| 73 | return '' |
| 74 | } |
| 75 | |
| 76 | return basename.slice(index) |
| 77 | } |
no test coverage detected