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 e74dcb6 commit be28c06Copy full SHA for be28c06
extension/src/json-viewer/extract-json.js
@@ -2,7 +2,7 @@ function extractJSON(rawJson) {
2
return rawJson
3
.replace(/\s*while\((1|true)\)\s*;?/, '')
4
.replace(/\s*for\(;;\)\s*;?/, '')
5
- .replace(/^[^{\[].+\({/, '{')
+ .replace(/^[^{\[].+\(\s?{/, '{')
6
.replace(/}\s?\);?\s*$/, '}');
7
}
8
0 commit comments