MCPcopy Create free account
hub / github.com/OpenCoworkAI/open-codesign / parseLegacyKey

Function parseLegacyKey

packages/shared/src/editmode.ts:149–154  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

147}
148
149function parseLegacyKey(raw: string): string | null {
150 const text = raw.trim();
151 const quoted = parseLegacyStringLiteral(text);
152 if (quoted !== null && quoted.trim().length > 0) return quoted;
153 return /^[A-Za-z_$][\w$]*$/.test(text) ? text : null;
154}
155
156function parseLegacyEditmodeObject(raw: string): EditmodeTokens | null {
157 const text = raw.trim();

Callers 1

Calls 1

parseLegacyStringLiteralFunction · 0.85

Tested by

no test coverage detected