utils: removing unquote utils function from csv-to-tsv

This commit is contained in:
Chesterkxng
2025-04-05 03:53:15 +02:00
parent bafaccc25b
commit fcb20a24f8

View File

@@ -1,9 +1,4 @@
function unquoteIfQuoted(value: string, quoteCharacter: string): string {
if (value.startsWith(quoteCharacter) && value.endsWith(quoteCharacter)) {
return value.slice(1, -1); // Remove first and last character
}
return value;
}
import { unquoteIfQuoted } from '@utils/string';
export function csvToTsv(
input: string,
delimiter: string,