(filePath: string)
| 96 | export const SOURCE_SAVE_FILE_REGEX = /\.(md|mdx|txt)$/i; |
| 97 | |
| 98 | export function isSourceSaveFilePath(filePath: string): boolean { |
| 99 | return SOURCE_SAVE_FILE_REGEX.test(filePath); |
| 100 | } |
| 101 | |
| 102 | export function getSourceSaveLanguage(filePath: string): SourceSaveLanguage | null { |
| 103 | const lower = filePath.toLowerCase(); |
no outgoing calls
no test coverage detected