Skip to content

Commit

Permalink
Rollback 'escape_slash: true'
Browse files Browse the repository at this point in the history
  • Loading branch information
karreiro committed Jul 5, 2024
1 parent 13c246e commit 71c8729
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,11 @@ def settings_schema?
end

def normalize_json(content)
# Backend escapes slashes
JSON.generate(JSON.parse(content), escape_slash: true)
normalized = JSON.generate(JSON.parse(content))

# Backend escapes forward slashes
normalized.gsub!(/\//, "\\/")
normalized
end
end
end
Expand Down

0 comments on commit 71c8729

Please sign in to comment.