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

Function escapeLike

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

Source from the content-addressed store, hash-verified

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

Callers 1

purgeOrganizationDataFunction · 0.70

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected