summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpabs@pablotron.org <pabs@pablotron.org>2014-12-18 01:12:05 -0500
committerpabs@pablotron.org <pabs@pablotron.org>2014-12-18 01:12:05 -0500
commit57b87aebef1bde7fd5c024f0af835f3bd33fc553 (patch)
tree601580fcde48179f5e20b59911ef617ce1da815b
parent1593bdcccb6e6dccd0ad3370eea0b16c9d11fb5e (diff)
downloadluigi-template-57b87aebef1bde7fd5c024f0af835f3bd33fc553.tar.bz2
luigi-template-57b87aebef1bde7fd5c024f0af835f3bd33fc553.zip
remove pluralize and add s filter
-rw-r--r--luigi-template.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/luigi-template.js b/luigi-template.js
index 55ecf25..610e120 100644
--- a/luigi-template.js
+++ b/luigi-template.js
@@ -84,8 +84,8 @@ LuigiTemplate = (function() {
return (v || '').toLowerCase();
},
- pluralize: function(v) {
- return v + 's';
+ s: function(v) {
+ return (v == 1) ? '' : 's';
},
length: function(v) {