Skip to content

Commit

Permalink
fix: fix issue 9
Browse files Browse the repository at this point in the history
  • Loading branch information
colin.ck committed Apr 4, 2018
1 parent 7fe1f79 commit 1b115aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JSONPretty.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = createReactClass({
var booSpan = '<span class=json-boolean>';
var sps = ind || '';
if (key) {
sps = sps + '"' + keySpan + key.replace(/[": ]/g, '') + spanEnd + '": ';
sps = sps + '"' + keySpan + key.replace(/^"|":\s$/g, '') + spanEnd + '": ';
}

if (val) {
Expand Down

0 comments on commit 1b115aa

Please sign in to comment.