mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-20 15:31:37 +01:00
Start of auto updates
This commit is contained in:
1 parent
a709e4b19f
commit
9dfe3db720
13 files changed
+301
-101
No files matched your search
@@ -0,0 +1,7 @@
|
||||
export function tryFormatJson(text: string): string {
|
||||
try {
|
||||
return JSON.stringify(JSON.parse(text), null, 2);
|
||||
} catch (_) {
|
||||
return text;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user