Skip to content

Commit

Permalink
[escapeChar][xs]: including escape character in the tabulator argumen…
Browse files Browse the repository at this point in the history
…ts in flow spec - refs datopian/data-cli#253
  • Loading branch information
anuveyatsu committed Feb 7, 2018
1 parent e063d83 commit e96f4ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/utils/datahub.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@ async function getProcessingSteps(resources = [], sheets) {
output: res.descriptor.name,
tabulator: {
delimiter: res.descriptor.dialect.delimiter,
quotechar: res.descriptor.dialect.quote || res.descriptor.dialect.quoteChar
quotechar: res.descriptor.dialect.quoteChar,
escapechar: res.descriptor.dialect.escapeChar
}
}
processingSteps.push(step)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "datahub-client",
"version": "0.2.3",
"version": "0.2.4",
"description": "APIs for interacting with DataHub",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion test/utils.datahub.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,8 @@ test('getProcessingSteps function works for CSV with dialect', async t => {
output: 'semicolon-delimited',
tabulator: {
delimiter: ';',
quotechar: '\"'
quotechar: '\"',
escapechar: '\"'
}
}
t.is(processing.length, 1)
Expand Down

0 comments on commit e96f4ca

Please sign in to comment.