Truncate too long subject lines

This will do https://github.com/mcollina/node-errormailer/issues/17

Also have bumped the packages. All tested and good to go.
Oh yes, absolutely. My bad. Just pushed a small fix to the repo.

On 11/09/14 23:19, Matteo Collina wrote:
>
> In index.js:
>
> > @@ -4,6 +4,10 @@ var emailTemplates = require('email-templates');
> >  var _              = require('underscore');
> >  var async          = require('async');
> >  
> > +String.prototype.trunc = String.prototype.trunc || function(n) {
> > +    return this.length > n ? this.substr(0, n - 1) + '&hellip;' : this;
> > +};
> > +
>
> This is actually bad, I'm sorry I merged it before actually checking :(.
> Can you please rework this so it does not extend String's prototype?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/binarykitchen/node-errormailer/pull/1/files#r17415479>.
>

-- 

Binary Kitchen
Michael Heuberger
4c Dunbar Road
Mt Eden
Auckland 1024
(New Zealand)

Mobile (text only) ...  +64 21 261 89 81
Email ................  michael@binarykitchen.com
Website ..............  http://www.binarykitchen.com