parseResponse method ✓ 100.0%

Last updated: 2026-03-01T23:25:47.072Z

Metrics

LOC: 9 Complexity: 3 Params: 1 Coverage: 100.0% (4/4 lines, 13x executed)

Signature

parseResponse(raw: string): : string | null

Source Code

  parseResponse(raw: string): string | null {
    let value = raw.trim();
    if (value.length === 0) return null;

    // Strip markdown code fences if the AI added them despite the rules
    value = value.replace(/^```[\w]*\n?/, "").replace(/\n?```$/, "");

    return value.trim() || null;
  },

No outgoing dependencies.

No incoming dependencies.