Skip to content

Commit

Permalink
Added back a single of the text.replace
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Apr 5, 2021
1 parent 8b1d447 commit 1b3f7f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/models/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class JSONView extends PanelMarkupView {

render(): void {
super.render();
const text = this.model.text
const text = this.model.text.replace(/(\r\n|\n|\r)/gm, "")
let json;
try {
json = window.JSON.parse(text)
Expand Down

0 comments on commit 1b3f7f1

Please sign in to comment.