Skip to content

Commit

Permalink
Remove unescaped control characters
Browse files Browse the repository at this point in the history
  • Loading branch information
ical10 committed May 15, 2024
1 parent 8abb82d commit 089245a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/typechain-polkadot/src/utils/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
* @param json - JSON string
*/
export function minimizeJson(json: string): string {
return JSON.stringify(JSON.parse(json));
}
return JSON.stringify(JSON.parse(json)).replace(/\\n/g, "");
}

0 comments on commit 089245a

Please sign in to comment.