mirror of
https://github.com/usebruno/bruno.git
synced 2025-02-18 02:30:58 +01:00
Merge pull request #1062 from n00o/feature/JSON_Handle_Variables
Fix (#1038): Handle unquoted variables in JSON Lint
This commit is contained in:
commit
0e320535a8
@ -204,8 +204,8 @@ export default class CodeEditor extends React.Component {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
jsonlint.parse(stripJsonComments(text));
|
jsonlint.parse(stripJsonComments(text.replace(/(?<!"[^":{]*){{[^}]*}}(?![^"},]*")/g, '1')));
|
||||||
} catch (e) { }
|
} catch (e) {}
|
||||||
return found;
|
return found;
|
||||||
});
|
});
|
||||||
if (editor) {
|
if (editor) {
|
||||||
|
Loading…
Reference in New Issue
Block a user