From 7df58a681364864e10882802d16f9cd130d0b77b Mon Sep 17 00:00:00 2001 From: Jermolene Date: Thu, 7 Feb 2019 12:56:12 +0000 Subject: [PATCH] Fixed bug with length operator Thanks @BurningTreeC --- core/modules/filters/strings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(