josdejong/jsonrepair

Another case: Colon expected at position 69

开放

#152 创建于 2025年12月18日

 (1 条评论) (0 个反应) (0 位负责人)TypeScript (88 个派生)github user discovery
enhancementhelp wanted

仓库指标

星标
 (2,397 个星标)
PR 合并指标
 (平均合并 26天 22小时) (30 天内合并 2 个 PR)

描述

Why, or why DeepSeek is so stoopid...

import { jsonrepair } from "jsonrepair";
const json = `{"body": "@root continuing the review...", "suggested_diff_hunk: null, "approve_pr: false}`;
const repairedJson = jsonrepair(json);
JSONRepairError: Colon expected at position 69

If I render the exact position, it'd be:

{"body": "@root continuing the review...", "suggested_diff_hunk: null, "approve_pr: false}
                                                                     ^

Do you think this case can be handled?

贡献者指南