MCPcopy Create free account
hub / github.com/effect-app/libs / unquote

Function unquote

repos/effect/packages/sql/sqlite-do/test/Client.test.ts:152–152  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

150const normalizeSql = (sql: string) => sql.replace(/;$/, "").replace(/\s+/g, " ").trim()
151
152const unquote = (value: string) => value.replace(/^"|"$/g, "")
153
154const valueGroups = (values: string): Array<string> =>
155 values.match(/\(([^)]*)\)/g)?.map((group) => group.slice(1, -1)) ?? []

Callers 1

execMethod · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…