(filepath: string)
| 40 | } |
| 41 | |
| 42 | export function normalizePath(filepath: string) { |
| 43 | let normalizedPath = path.normalize(filepath); |
| 44 | |
| 45 | // Convert Windows path separators to Mac path separators |
| 46 | if (process.platform === 'win32') { |
| 47 | normalizedPath = normalizedPath.replace(/\\/g, '/'); |
| 48 | } |
| 49 | |
| 50 | return normalizedPath; |
| 51 | } |
| 52 | |
| 53 | export function isAstroToolbarFile(file: string) { |
| 54 | const normalizedFile = normalizePath(file).replace(/\0/g, '__x00__'); |
no outgoing calls
no test coverage detected