MCPcopy
hub / github.com/vitejs/vite / isSameFilePath

Function isSameFilePath

packages/vite/src/node/utils.ts:273–278  ·  view source on GitHub ↗
(file1: string, file2: string)

Source from the content-addressed store, hash-verified

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

Callers 1

isFileInTargetPathFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected