(filePath: string, context: ResolutionContext)
| 1084 | // --------------------------------------------------------------------------- |
| 1085 | |
| 1086 | function fileLines(filePath: string, context: ResolutionContext): string[] { |
| 1087 | return context.getFileLines?.(filePath) ?? context.readFile(filePath)?.split(/\r?\n/) ?? []; |
| 1088 | } |
| 1089 | |
| 1090 | function escapeRegExp(s: string): string { |
| 1091 | return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); |
no test coverage detected