MCPcopy
hub / github.com/jestjs/jest / replacePathSepForGlob

Function replacePathSepForGlob

packages/jest-util/src/replacePathSepForGlob.ts:8–10  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

6 */
7
8export default function replacePathSepForGlob(path: string): string {
9 return path.replaceAll(/\\(?![$()+.?^{}])/g, '/');
10}

Callers 4

normalizeFunction · 0.90
matchFilesWithGlobMethod · 0.90
shouldInstrumentFunction · 0.90
globsToMatcherFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected