diff --git a/src/pages/tools/csv/csv-to-yaml/service.ts b/src/pages/tools/csv/csv-to-yaml/service.ts index 8557b4d..67cdefb 100644 --- a/src/pages/tools/csv/csv-to-yaml/service.ts +++ b/src/pages/tools/csv/csv-to-yaml/service.ts @@ -57,6 +57,9 @@ export function main(input: string, options: InitialValuesType): string { if (options.headerRow) { const headerRow = getCsvHeaders(input, options.csvSeparator); + headerRow.forEach((header, headerIndex) => { + headerRow[headerIndex] = unquoteIfQuoted(header, options.quoteCharacter); + }); const result: Record[] = rows.slice(1).map((row) => { const entry: Record = {};