mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
[PR #241] [CLOSED] format json using jsonrepair
#166
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mountain-loop/yaak/pull/241
Author: @subframe7536
Created: 7/17/2025
Status: ❌ Closed
Base:
main← Head:format-json📝 Commits (6)
c7f337cformat json usingjsonrepaire4f0a4cMerge branch 'master' into format-jsonefd09c1Switch back to custom formatter, disable repair for editor formatting, and other cleanup36e0f64Catch jsonrepair exceptionf252591Merge branch 'master' into format-jsonb8e6dcfsupport replacing spaces in Windows📊 Changes
6 files changed (+82 additions, -21 deletions)
View changed files
📝
package-lock.json(+21 -1)📝
src-tauri/yaak-templates/src/format.rs(+38 -2)📝
src-web/components/core/Editor/Editor.tsx(+1 -1)📝
src-web/components/core/Editor/extensions.ts(+2 -2)📝
src-web/lib/formatters.ts(+18 -14)📝
src-web/package.json(+2 -1)📄 Description
In real world cases, paste-into json strings sometimes are corrupted and could cause syntax error, so I use
jsonrepairto fix them. Also,@shopify/lang-jsoncis used to enhance color highlighting effect.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.