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

Function escapeRegExp

e2e/cloud/oauth-callback-org-scope.test.ts:42–42  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

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

Callers 2

expectOrgShellFunction · 0.70

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected