(source: string)
| 133 | } |
| 134 | |
| 135 | export const parseOpenSourceParam = (source: string) => { |
| 136 | // Capture everything up to the last two colon-separated numeric parts as the file. |
| 137 | // This supports filenames that may themselves contain colons. |
| 138 | const parts = source.match(/^(.+):(\d+):(\d+)$/) |
| 139 | |
| 140 | if (!parts) return null |
| 141 | |
| 142 | const [, file, line, column] = parts |
| 143 | return { file, line, column } |
| 144 | } |
| 145 | |
| 146 | const tryReadFile = async (filePath: string) => { |
| 147 | try { |
no outgoing calls
no test coverage detected