MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / escapeString

Function escapeString

app/src/utils/pruningRules.ts:5–8  ·  view source on GitHub ↗
(input: string | undefined)

Source from the content-addressed store, hash-verified

3import { isComparisonModel } from "./comparisonModels";
4
5export function escapeString(input: string | undefined) {
6 // Remove first and last character, which are quotes
7 return JSON.stringify(input || "").slice(1, -1);
8}
9
10export function escapeLikeString(input: string | undefined) {
11 return escapeString(escapeString(input || ""));

Callers 3

escapeLikeStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected