chore: use react-grab to replace code-inspector-plugin (#33078)

This commit is contained in:
Stephen Zhou
2026-03-06 14:54:24 +08:00
committed by GitHub
parent e74cda6535
commit f05f0be55f
18 changed files with 250 additions and 427 deletions

View File

@ -0,0 +1,10 @@
export const cleanJsonText = (text) => {
const cleaned = text.replaceAll(/,\s*\}/g, '}')
try {
JSON.parse(cleaned)
return cleaned
}
catch {
return text
}
}