Skip to content

Commit

Permalink
#841 - handle number inputs in csv_row()
Browse files Browse the repository at this point in the history
  • Loading branch information
kensoh committed Nov 28, 2020
1 parent 3c668b5 commit 64e45cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tagui_header.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ sikuli_step('vision App.setClipboard(clipboard_text)');}}
* @param {string} cell_data
*/
function sanitise_csv_cell(cell_data) {
// ensure numbers are converted to string
cell_data = cell_data.toString()
// Replace all double quotes with 2 double quotes
cell_data = cell_data.replace(/"/g, '\"\"')
var whitespaceCheckRegex = /\s/
Expand Down
2 changes: 2 additions & 0 deletions src/test/positive_test.signature
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ sikuli_step('vision App.setClipboard(clipboard_text)');}}
* @param {string} cell_data
*/
function sanitise_csv_cell(cell_data) {
// ensure numbers are converted to string
cell_data = cell_data.toString()
// Replace all double quotes with 2 double quotes
cell_data = cell_data.replace(/"/g, '\"\"')
var whitespaceCheckRegex = /\s/
Expand Down

0 comments on commit 64e45cc

Please sign in to comment.