]> git.r.bdr.sh - rbdr/generador-de-insultos/commitdiff
Fixes E pluralizing
authorBen Beltran <redacted>
Sun, 6 Sep 2015 01:15:10 +0000 (20:15 -0500)
committerBen Beltran <redacted>
Sun, 6 Sep 2015 01:15:10 +0000 (20:15 -0500)
lib/InsultGenerator.js

index e5ad2930906c796feb34b4e134a3e5568a8d15df..2d49dc1f4f44de592e77e08edf4a81f84e97cff4 100644 (file)
@@ -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"
       }