Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Commit

Permalink
Fix JSON escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerhawkvok committed Jul 8, 2016
1 parent 839d91a commit 5dfeee4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion coffee/core.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,8 @@ downloadCSVFile = (data, options) ->
dataVal = value[col]
if typeof dataVal is "object"
try
dataVal = JSON.stringify dataVal
dataVal = JSON.stringify dataVal
dataVal = dataVal.replace(/"/g,'""')
tmpRow.push dataVal
tmpRowString = tmpRow.join options.splitValues
textAsset += handleValue tmpRowString, options
Expand Down
1 change: 1 addition & 0 deletions js/c.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions js/c.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/maps/c.js.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion js/maps/c.src.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,8 @@ downloadCSVFile = (data, options) ->
dataVal = value[col]
if typeof dataVal is "object"
try
dataVal = JSON.stringify dataVal
dataVal = JSON.stringify dataVal
dataVal = dataVal.replace(/"/g,'""')
tmpRow.push dataVal
tmpRowString = tmpRow.join options.splitValues
textAsset += handleValue tmpRowString, options
Expand Down

0 comments on commit 5dfeee4

Please sign in to comment.