MCPcopy Create free account
hub / github.com/Effect-TS/effect / isQuoted

Function isQuoted

packages/effect/src/unstable/encoding/Ini.ts:45–48  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

43}
44
45const isQuoted = (value: string): boolean =>
46 value.length >= 2 &&
47 ((value.startsWith("\"") && value.endsWith("\"")) ||
48 (value.startsWith("'") && value.endsWith("'")))
49
50const unquote = (input: string | undefined): string => {
51 let value = (input ?? "").trim()

Callers 1

unquoteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected