Oops, if the name endsWith("s") we add an "e", not the other way around...
This commit is contained in:
		
							parent
							
								
									dd72bd4804
								
							
						
					
					
						commit
						3548d309c1
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -10,8 +10,8 @@ | ||||||
|  * |  * | ||||||
|  * $RCSfile: HopObject.js,v $ |  * $RCSfile: HopObject.js,v $ | ||||||
|  * $Author: tobi $ |  * $Author: tobi $ | ||||||
|  * $Revision: 1.2 $ |  * $Revision: 1.3 $ | ||||||
|  * $Date: 2007/04/23 14:59:34 $ |  * $Date: 2007/04/23 15:00:56 $ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | @ -162,7 +162,7 @@ HopObject.prototype.size_macro = function(param, name) { | ||||||
|    var n = this.size(); |    var n = this.size(); | ||||||
|    if (name) { |    if (name) { | ||||||
|       var text; |       var text; | ||||||
|       var plural = name.endsWith("s") ? "s" : "es"; |       var plural = name.endsWith("s") ? "es" : "s"; | ||||||
|       if (n > 0) { |       if (n > 0) { | ||||||
|          if (n > 1) { |          if (n > 1) { | ||||||
|             text = n + " " + name + plural; |             text = n + " " + name + plural; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue