(filePath: string)
| 115 | * Check if a file path has a binary extension. |
| 116 | */ |
| 117 | export function hasBinaryExtension(filePath: string): boolean { |
| 118 | const ext = filePath.slice(filePath.lastIndexOf('.')).toLowerCase() |
| 119 | return BINARY_EXTENSIONS.has(ext) |
| 120 | } |
| 121 | |
| 122 | /** |
| 123 | * Number of bytes to read for binary content detection. |
no test coverage detected