diff --git a/package-lock.json b/package-lock.json index 70628a32..44f4a95f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2419,6 +2419,11 @@ "cssom": "0.3.2" } }, + "csv-string": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/csv-string/-/csv-string-3.1.2.tgz", + "integrity": "sha512-JzjYuRSU/5y6H9BqwaJTNsF8dYlFql14n1GIOgu2QHFCoU20U2DaeMShyIZuvU7WS0n7u+AMhgUOuqRZ9eFhog==" + }, "ctph.js": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/ctph.js/-/ctph.js-0.0.5.tgz", diff --git a/package.json b/package.json index b9ef681a..04a9391c 100644 --- a/package.json +++ b/package.json @@ -76,6 +76,7 @@ "bootstrap-switch": "^3.3.4", "crypto-api": "^0.8.0", "crypto-js": "^3.1.9-1", + "csv-string": "^3.1.2", "ctph.js": "0.0.5", "diff": "^3.4.0", "escodegen": "^1.9.1", diff --git a/src/core/operations/CSVParser.js b/src/core/operations/CSVParser.js index 2684896e..0ffb9303 100644 --- a/src/core/operations/CSVParser.js +++ b/src/core/operations/CSVParser.js @@ -22,7 +22,7 @@ const CSVParser = { if (detectedDelimeter !== args[0]) { args[0] = detectedDelimeter; } - array = CSV.parse(input, args[0], args[1]); + array = CSV.parse(input, args[0], args[1]); } else { array = "The passed in data is not a csv string. Please pass in a csv string."; } @@ -42,7 +42,7 @@ const CSVParser = { string = "The passed in data is not a string that can be converted to a CSV."; } return string; - } + } }; export default CSVParser;