From: Ben Beltran Date: Sun, 6 Sep 2015 01:15:10 +0000 (-0500) Subject: Fixes E pluralizing X-Git-Url: https://git.r.bdr.sh/rbdr/generador-de-insultos/commitdiff_plain/53f11788ee88247015331744f5f98d45e1fcd408?ds=sidebyside Fixes E pluralizing --- diff --git a/lib/InsultGenerator.js b/lib/InsultGenerator.js index e5ad293..2d49dc1 100644 --- a/lib/InsultGenerator.js +++ b/lib/InsultGenerator.js @@ -161,7 +161,7 @@ var InsultGenerator = Class({}, "InsultGenerator")({ // Super dumb pluralizer _pluralize : function _pluralize(noun) { console.log(noun); - if (["a","e,","i","o","u"].indexOf(noun[noun.length - 1]) >= 0) { + if (["a","e","i","o","u"].indexOf(noun[noun.length - 1]) >= 0) { return noun + "s" }