From 73bd4116400c77dd20a6023def7ca187197ad755 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Tue, 3 Jun 2014 16:30:22 +0100 Subject: [PATCH] Fix a perfectly understandable logic error that anyone could have made and which it would be churlish to blame me for. --- src/mkws-handlebars.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mkws-handlebars.js b/src/mkws-handlebars.js index 67b3b19..a8dc142 100644 --- a/src/mkws-handlebars.js +++ b/src/mkws-handlebars.js @@ -18,7 +18,7 @@ Handlebars.registerHelper('mkws-paragraphs', function(obj, nPara, nSent) { if (nPara === undefined || nPara.hasOwnProperty('hash') || nPara == 0 || nPara > obj.length) { nPara = obj.length; } - if (nSent === undefined || nSent.hasOwnProperty('hash') || nSent == 0 || nSent > obj.length) { + if (nSent === undefined || nSent.hasOwnProperty('hash') || nSent == 0) { nSent = Infinity; } -- 1.7.10.4