diff --git a/lib/utils.js b/lib/utils.js index e80bb74f..1ecd05d0 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -5,9 +5,7 @@ export function parseJson(json) { try { // clean up JSON that contains escape sequences, // such as: `\\` or with `\"` - let cleanedJson = json - .replace(/\\/g, "\\\\") - .replace(/\\\"/g, '"'); + let cleanedJson = json.replace(/\\/g, "\\\\").replace(/\\"/g, '"'); return JSON.parse(cleanedJson); } catch (error) { // eslint-disable-next-line no-console