(input: string)
| 31 | } |
| 32 | |
| 33 | export function isCodeFilePath(input: string): boolean { |
| 34 | if (!isPlausibleCodeFilePath(input)) return false; |
| 35 | return CODE_FILE_REGEX.test(stripLineRef(input)) |
| 36 | && !input.startsWith('http://') && !input.startsWith('https://'); |
| 37 | } |
| 38 | |
| 39 | export function isCodeFilePathStrict(input: string): boolean { |
| 40 | return input.includes('/') && isCodeFilePath(input); |
no test coverage detected