From 3548d309c1e593c45a32723ffa185412b6493a04 Mon Sep 17 00:00:00 2001 From: p3k Date: Mon, 23 Apr 2007 15:03:47 +0000 Subject: [PATCH] Oops, if the name endsWith("s") we add an "e", not the other way around... --- core/HopObject.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/HopObject.js b/core/HopObject.js index ce966404..48b5941a 100644 --- a/core/HopObject.js +++ b/core/HopObject.js @@ -10,8 +10,8 @@ * * $RCSfile: HopObject.js,v $ * $Author: tobi $ - * $Revision: 1.2 $ - * $Date: 2007/04/23 14:59:34 $ + * $Revision: 1.3 $ + * $Date: 2007/04/23 15:00:56 $ */ @@ -162,7 +162,7 @@ HopObject.prototype.size_macro = function(param, name) { var n = this.size(); if (name) { var text; - var plural = name.endsWith("s") ? "s" : "es"; + var plural = name.endsWith("s") ? "es" : "s"; if (n > 0) { if (n > 1) { text = n + " " + name + plural;