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

Function escapeGlobCharacters

packages/jest-config/src/utils.ts:54–55  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

52};
53
54export const escapeGlobCharacters = (path: string): string =>
55 path.replaceAll(/([!()*?[\\\]{}])/g, '\\$1');
56
57export const replaceRootDirInPath = (
58 rootDir: string,

Callers 1

normalizeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected