MCPcopy Index your code
hub / github.com/CapSoftware/Cap / escapeLikePattern

Function escapeLikePattern

packages/web-backend/src/Storage/StorageRepo.ts:19–20  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

17 createHash("sha256").update(key).digest("hex");
18
19const escapeLikePattern = (value: string) =>
20 value.replace(/[\\%_]/g, (match) => `\\${match}`);
21
22export type GoogleDriveIntegrationConfig = {
23 refreshToken: string;

Callers 1

StorageRepoClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected