MCPcopy Create free account
hub / github.com/vercel/vercel / escapePythonRegex

Function escapePythonRegex

packages/python/src/compileall.ts:140–142  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

138];
139
140function escapePythonRegex(value: string): string {
141 return value.replace(/[\\^$.*+?()[\]{}|]/g, '\\$&');
142}
143
144/**
145 * Build a Python regex for the `-x` flag of `compileall` that skips the

Callers 1

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected