trim argument value

This commit is contained in:
yuanchuan 2017-05-28 20:13:03 +08:00
parent 6770e96d27
commit 3cab83b2c1
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ function throw_error(msg, { col, line }) {
function get_text_value(input) {
if (input.trim().length) {
return is.number(+input) ? +input : input;
return is.number(+input) ? +input : input.trim()
} else {
return input;
}