mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 01:28:35 +02: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
|
// Decode unicode sequences in the text to readable characters
|
||||||
if (pretty) {
|
if (language === 'json' && pretty) {
|
||||||
body = decodeUnicodeLiterals(body);
|
body = decodeUnicodeLiterals(body);
|
||||||
body = body.replace(/\\\//g, '/'); // Hide unnecessary escaping of '/' by some older frameworks
|
body = body.replace(/\\\//g, '/'); // Hide unnecessary escaping of '/' by some older frameworks
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user