mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 20:00:29 +01:00
Add JSON language check
This commit is contained in:
@@ -117,7 +117,7 @@ export function TextViewer({ language, text, responseId, requestId, pretty, clas
|
||||
}
|
||||
|
||||
// Decode unicode sequences in the text to readable characters
|
||||
if (pretty) {
|
||||
if (language === 'json' && pretty) {
|
||||
body = decodeUnicodeLiterals(body);
|
||||
body = body.replace(/\\\//g, '/'); // Hide unnecessary escaping of '/' by some older frameworks
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user