From 746c5e825e6a9d36536cc5fd92d4d08fd3bdd55c Mon Sep 17 00:00:00 2001 From: n00o Date: Sun, 26 Nov 2023 16:57:31 -0500 Subject: [PATCH] Fix (#1038): Handle unquoted variables in JSON Lint Convert unquoted variables in JSON body to 1 in JSON linter. This allows for putting multiple environment/collection variables next to each other and still be unquoted. --- packages/bruno-app/src/components/CodeEditor/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bruno-app/src/components/CodeEditor/index.js b/packages/bruno-app/src/components/CodeEditor/index.js index a171568ab..ce8187deb 100644 --- a/packages/bruno-app/src/components/CodeEditor/index.js +++ b/packages/bruno-app/src/components/CodeEditor/index.js @@ -204,8 +204,8 @@ export default class CodeEditor extends React.Component { }); }; try { - jsonlint.parse(stripJsonComments(text)); - } catch (e) { } + jsonlint.parse(stripJsonComments(text.replace(/(?