Becouse.. I am not a javascript specialist jey. I will change this for you,
I think it a good change to make.


2013/10/18 Ben Sparks <notifications@github.com>

> In src/server/game/ironbot/lib/badwords.js:
>
> > +	/* smeg */dictionary.smeg = /\b(((\w)|())+(\W|\d|_)*(s|5)+(\W|\d|_)*(m)+(\W|\d|_)*(e|3)+(\W|\d|_)*(g|9))\b/i;
> > +	/* snatch */dictionary.snatch = /\b(((\w)|())+(\W|\d|_)*(s|5)+(\W|\d|_)*(n)+(\W|\d|_)*(a|@)+(\W|\d|_)*(t)+(\W|\d|_)*(c|g|9)+(\W|\d|_)*(h|))\b/i;
> > +	/* spic, spick */dictionary.spic = /\b(((\w)|())+(\W|\d|_)*(s|5)+(\W|\d|_)*(p)+(\W|\d|_)*(i|1|!)+(\W|\d|_)*(c|k)+(\W|\d|_)*(k|))\b/i;
> > +	/* splooge */dictionary.splooge = /\b(((\w)|())+(\W|\d|_)*(s|5)+(\W|\d|_)*(p)+(\W|\d|_)*(l|1|!)+(\W|\d|_)*((0|o){2})+(\W|\d|_)*(g|9)+(\W|\d|_)*(e|3))\b/i;
> > +	/* spook */dictionary.spook = /\b(((\w)|())+(\W|\d|_)*(s|5)+(\W|\d|_)*(p)+(\W|\d|_)*((o|0){2})+(\W|\d|_)*(k))\b/i;
> > +	/* stfu, gtfo  */dictionary.stfu = /\b((5|s|z)+(\W|\d|_)*(7|t)+(\W|\d|_)*f+(\W|\d|_)*u+(\W|\d|_)*)|\b(g+(\W|\d|_)*(7|t)+(\W|\d|_)*f+(\W|\d|_)*(0|o)+(\W|\d|_)*)/i;
> > +	/* testical, testicle */dictionary.testicle = /\b((7|t)+(\W|\d|_)*(3|e)+(\W|\d|_)*(5|s|z)+(\W|\d|_)*(7|t)+(\W|\d|_)*(a|i)+(\W|\d|_)*(c|k)+(\W|\d|_)*(3|a|e)*(\W|\d|_)*(1|l)+(\W|\d|_)*(3|e)*(\W|\d|_)*)/i;
> > +	/* tit but no other words */dictionary.tit = /\b((7|t)+(1|i)+(7|t)+)\b|\b((7|t)+(1|i)+(7|t)+(5|s|z)+)\b|\b((7|t)+(1|i)+(7|t)+y+)\b/i;
> > +	/* turd, terd, tard */dictionary.tard = /\b(((\w)|())+(\W|\d|_)*(t)+(\W|\d|_)*(u|e|a|@|3)+(\W|\d|_)*(r)+(\W|\d|_)*(d|t))/i;
> > +	/* twad */dictionary.tard = /\b(((\w)|())+(\W|\d|_)*(t|7)+(\W|\d|_)*(w)+(\W|\d|_)*(a|@)+(\W|\d|_)*(t|7))/i;
> > +	/* vagina */dictionary.vagina = /\b(v+(\W|\d|_)*a+(\W|\d|_)*(g|j)+(\W|\d|_)*)\b|\b(v+(\W|\d|_)*a+(\W|\d|_)*(g|j)+(\W|\d|_)*a*(\W|\d|_)*(1|i)+(\W|\d|_)*n+(\W|\d|_)*a+(\W|\d|_)*s*(\W|\d|_)*)\b/i;
> > +	/* wetback */dictionary.wetback = /\b(((\w)|())+(\W|\d|_)*(w)+(\W|\d|_)*(e|3)+(\W|\d|_)*(t|d)+(\W|\d|_)*(b)+(\W|\d|_)*(a|@)+(\W|\d|_)*(c|k)+(\W|\d|_)*(k|))\b/i;
> > +	/* whore */dictionary.whore = /\b(((\w)|())+(\W|\d|_)*(w|)+(\W|\d|_)*(h)+(\W|\d|_)*(o|0)+(\W|\d|_)*(a|)+(\W|\d|_)*(r)+(\W|\d|_)*(e|3))/i;
> > +	return dictionary;
> > +}
> > +exports.getDictionary = getDictionary;
>
> why wrap this in a function? why not just say module.exports = dictionary ?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ironbane/IronbaneServer/pull/224/files#r7053807>
> .
>



-- 
----------
Lars van der Schans