We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39c483c commit e74dcb6Copy full SHA for e74dcb6
extension/src/json-viewer/extract-json.js
@@ -3,7 +3,7 @@ function extractJSON(rawJson) {
3
.replace(/\s*while\((1|true)\)\s*;?/, '')
4
.replace(/\s*for\(;;\)\s*;?/, '')
5
.replace(/^[^{\[].+\({/, '{')
6
- .replace(/}\);?\s*$/, '}');
+ .replace(/}\s?\);?\s*$/, '}');
7
}
8
9
module.exports = extractJSON;
0 commit comments