mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-07 17:34:56 +05:30
utils: removing unquote utils function from csv-to-tsv
This commit is contained in:
parent
bafaccc25b
commit
fcb20a24f8
1 changed files with 1 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue