(relativePath: string)
| 265 | } |
| 266 | |
| 267 | function splitRelativePath(relativePath: string) { |
| 268 | relativePath = relativePath.replace(/\\/g, "/"); |
| 269 | return relativePath.split("/").filter((p) => p !== ""); |
| 270 | } |
| 271 | |
| 272 | // 辅助函数:判断字符串是否有文件扩展名 |
| 273 | function hasFileExtension(filename: string): boolean { |
no outgoing calls
no test coverage detected