(filePath: string)
| 10 | * @returns True if the file has a JavaScript or TypeScript extension, false otherwise. |
| 11 | */ |
| 12 | export function isJavascriptFile(filePath: string): boolean { |
| 13 | return new RegExp(`\\.(${JAVASCRIPT_EXTENSIONS.join('|')})$`).test(filePath); |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * Checks if a file is an image file based on its extension. Non-exhaustive list. |
no outgoing calls
no test coverage detected
searching dependent graphs…