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

Function escapeLike

apps/cloud/src/db/org-deletion.ts:33–33  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

31// prefix. WorkOS org ids contain underscores, and a bare `_` in a LIKE pattern
32// matches any character, which would widen the match to unrelated tenants.
33const escapeLike = (value: string): string => value.replace(/[\\%_]/g, "\\$&");
34
35/**
36 * Delete all rows owned by `organizationId`: every executor tenant table, the

Callers 1

purgeOrganizationDataFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected