1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-08 13:00:05 +00:00

fix: special missing double dot issue

This commit is contained in:
2022-07-07 17:58:27 +02:00
parent d3d62f6888
commit 8617e2dc57
2 changed files with 8 additions and 3 deletions

View File

@@ -141,7 +141,9 @@ export const convertToCSV = (
)
}
return `.${value.toLowerCase()}`
const dot = value.includes('.') ? '' : '.'
return `${dot}${value.toLowerCase()}`
}
// if there any present, it should have preceding (") for escaping