Skip to content

Commit e74dcb6

Browse files
committed
Fix the regular expression at the end of raw jsonp.
1 parent 39c483c commit e74dcb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/src/json-viewer/extract-json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function extractJSON(rawJson) {
33
.replace(/\s*while\((1|true)\)\s*;?/, '')
44
.replace(/\s*for\(;;\)\s*;?/, '')
55
.replace(/^[^{\[].+\({/, '{')
6-
.replace(/}\);?\s*$/, '}');
6+
.replace(/}\s?\);?\s*$/, '}');
77
}
88

99
module.exports = extractJSON;

0 commit comments

Comments
 (0)