mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-20 22:49:33 +02:00
utils: removing unquote utils function from csv-to-tsv
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user