MCPcopy Index your code
hub / github.com/Dimillian/CodexMonitor / stripWrappingQuotes

Function stripWrappingQuotes

src/utils/codexArgsInput.ts:7–15  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

5const NBSP_PATTERN = /[\u00A0\u2007\u202F]/g;
6
7function stripWrappingQuotes(value: string): string {
8 if (
9 (value.startsWith("\"") && value.endsWith("\"")) ||
10 (value.startsWith("'") && value.endsWith("'"))
11 ) {
12 return value.slice(1, -1);
13 }
14 return value;
15}
16
17export function normalizeCodexArgsInput(value: string | null | undefined): string | null {
18 const raw = (value ?? "").trim();

Callers 1

normalizeCodexArgsInputFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected