diff options
| author | pabs@pablotron.org <pabs@pablotron.org> | 2014-12-18 01:12:05 -0500 | 
|---|---|---|
| committer | pabs@pablotron.org <pabs@pablotron.org> | 2014-12-18 01:12:05 -0500 | 
| commit | 57b87aebef1bde7fd5c024f0af835f3bd33fc553 (patch) | |
| tree | 601580fcde48179f5e20b59911ef617ce1da815b | |
| parent | 1593bdcccb6e6dccd0ad3370eea0b16c9d11fb5e (diff) | |
| download | luigi-template-57b87aebef1bde7fd5c024f0af835f3bd33fc553.tar.xz luigi-template-57b87aebef1bde7fd5c024f0af835f3bd33fc553.zip | |
remove pluralize and add s filter
| -rw-r--r-- | luigi-template.js | 4 | 
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) { | 
