diff --git a/core/modules/filters/strings.js b/core/modules/filters/strings.js index 19fe1ab16..c36e29e4e 100644 --- a/core/modules/filters/strings.js +++ b/core/modules/filters/strings.js @@ -15,7 +15,7 @@ Sum/product/maxall/minall operate on the entire list, returning a single item. "use strict"; exports.length = makeStringBinaryOperator( - function(a) {return [("" + a).length];} + function(a) {return ["" + ("" + a).length];} ); exports.uppercase = makeStringBinaryOperator(