From a26bfa4f742399ce5b3b134c57020e462cb44ab6 Mon Sep 17 00:00:00 2001 From: Jean Tinland Date: Thu, 8 Aug 2024 17:47:25 +0200 Subject: [PATCH] Fix eslint error in utils --- lib/utils.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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