MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / escapeRegExp

Function escapeRegExp

e2e/cloud/mcp-browser-approval-org-scope.test.ts:45–45  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

43const originHeaders = (baseUrl: string) => ({ origin: new URL(baseUrl).origin });
44
45const escapeRegExp = (value: string): string => value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
46
47const setWorkosSessionCookie = async (page: Page, baseUrl: string, cookie: string) => {
48 await page.context().addCookies([

Callers 1

expectOrgShellFunction · 0.70

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected