(file1: string, file2: string)
| 271 | * @returns true if both files url are identical |
| 272 | */ |
| 273 | export function isSameFilePath(file1: string, file2: string): boolean { |
| 274 | return ( |
| 275 | file1 === file2 || |
| 276 | (isCaseInsensitiveFS && file1.toLowerCase() === file2.toLowerCase()) |
| 277 | ) |
| 278 | } |
| 279 | |
| 280 | export const externalRE: RegExp = /^([a-z]+:)?\/\// |
| 281 | export const isExternalUrl = (url: string): boolean => externalRE.test(url) |
no outgoing calls
no test coverage detected