From 20dafcbf744d3828a3fc13ed3fbbc37d9fd0eafe Mon Sep 17 00:00:00 2001 From: Michelle Tilley Date: Fri, 4 Jan 2019 13:13:02 -0800 Subject: [PATCH] Don't implicitly parse args as numbers --- js/controlbox.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/controlbox.js b/js/controlbox.js index c9761bf..d4df39c 100644 --- a/js/controlbox.js +++ b/js/controlbox.js @@ -3,7 +3,12 @@ function(_yargs, d3, demos) { "use strict"; function yargs(str, opts) { - var result = _yargs(str, opts) + var newOpts = Object.assign({}, opts, { + configuration: { + "parse-numbers": false + } + }) + var result = _yargs(str, newOpts) // make every value in result._ a string result._ = result._.map(function(val) {