From d321508437e100da15d7ef9227eae71f03df6280 Mon Sep 17 00:00:00 2001 From: David Johnston Date: Tue, 1 Oct 2013 10:50:13 +0100 Subject: [PATCH] Remove incorrect slice parameter. Remove incorrect slice parameter, which made the ! (not) prefix fail to return any results. --- core/modules/filters/limit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/filters/limit.js b/core/modules/filters/limit.js index 8075ec695..f2ea5b862 100644 --- a/core/modules/filters/limit.js +++ b/core/modules/filters/limit.js @@ -28,7 +28,7 @@ exports.limit = function(source,operator,options) { // Slice the array if necessary var limit = Math.min(source.length,parseInt(operator.operand,10)); if(operator.prefix === "!") { - results = source.slice(source.length - limit,limit); + results = source.slice(source.length - limit); } else { results = source.slice(0,limit); }