mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-08 15:25:01 -04:00
Fixed travis checks
This commit is contained in:
parent
e069ae4991
commit
5bab9b88e8
5 changed files with 62 additions and 62 deletions
|
@ -21,7 +21,7 @@ import PublicKeyModule from "./PublicKey.js";
|
||||||
import RegexModule from "./Regex.js";
|
import RegexModule from "./Regex.js";
|
||||||
import ShellcodeModule from "./Shellcode.js";
|
import ShellcodeModule from "./Shellcode.js";
|
||||||
import URLModule from "./URL.js";
|
import URLModule from "./URL.js";
|
||||||
import CSVModule from "./CSVParser.js"
|
import CSVModule from "./CSVParser.js";
|
||||||
|
|
||||||
Object.assign(
|
Object.assign(
|
||||||
OpModules,
|
OpModules,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { CSV } from 'csv-string';
|
import { CSV } from "csv-string";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author VimalRaghubir [vraghubir0418@gmail.com]
|
* @author VimalRaghubir [vraghubir0418@gmail.com]
|
||||||
|
@ -16,10 +16,10 @@ const CSVParser = {
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
csvToString: function(input, args) {
|
csvToString: function(input, args) {
|
||||||
var array = "";
|
let array = "";
|
||||||
if (input) {
|
if (input) {
|
||||||
var detectedDelimeter = CSV.detect(input);
|
let detectedDelimeter = CSV.detect(input);
|
||||||
if (detectedDelimeter != args[0]) {
|
if (detectedDelimeter !== args[0]) {
|
||||||
args[0] = detectedDelimeter;
|
args[0] = detectedDelimeter;
|
||||||
}
|
}
|
||||||
array = CSV.parse(input, args[0], args[1]);
|
array = CSV.parse(input, args[0], args[1]);
|
||||||
|
@ -35,7 +35,7 @@ const CSVParser = {
|
||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
stringToCSV: function(input, args) {
|
stringToCSV: function(input, args) {
|
||||||
var string = "";
|
let string = "";
|
||||||
if (input) {
|
if (input) {
|
||||||
string = CSV.stringify(input, args[0]);
|
string = CSV.stringify(input, args[0]);
|
||||||
} else {
|
} else {
|
||||||
|
@ -43,6 +43,6 @@ const CSVParser = {
|
||||||
}
|
}
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
export default CSVParser;
|
export default CSVParser;
|
Loading…
Add table
Add a link
Reference in a new issue