Browse Source

Merge pull request #1 from jpat1993/jpat1993-checkForObjects

added check for object to save the url
pull/333/head
Jay Patel 9 years ago committed by GitHub
parent
commit
1f9d6a6cd9
  1. 8
      papaparse.js

8
papaparse.js

@ -361,6 +361,14 @@ @@ -361,6 +361,14 @@
{
if (typeof str === 'undefined' || str === null)
return '';
// if the String passed in that we are checking in the unparse
// is a object (which means it is a img file from the json)
// so get the url from it, so users can access the file.
if(typeof str ==="object") {
return str.url;
}
str = str.toString().replace(/"/g, '""');

Loading…
Cancel
Save